Closed
Bug 868045
Opened 12 years ago
Closed 11 years ago
At some threshold, we should convert MS to Seconds in the Waterfall
Categories
(DevTools :: Netmonitor, defect, P2)
DevTools
Netmonitor
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 29
People
(Reporter: rcampbell, Assigned: vporof)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
7.30 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
After a few thousand ms, we should start labeling the timeline in seconds. Maybe at 10,000ms?
Assignee | ||
Updated•12 years ago
|
Priority: -- → P2
Comment 1•12 years ago
|
||
I have a rough patch for this but I'll finish bug 874363 before working on it more. 10000ms seems high, it looks weird having e.g. 8192ms on the timeline.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•12 years ago
|
||
Thank you for taking this, Geoff!
Comment 3•12 years ago
|
||
I've done a few things here:
* made the smallest possible increment 125ms (1/8th of a second) instead of 80ms
* switched to displaying seconds if the smallest increment is 1000ms or larger
* tweaked the algorithm for displaying tick marks and the background
I haven't updated the test yet.
Attachment #758925 -
Flags: feedback?(vporof)
Updated•12 years ago
|
Attachment #758925 -
Flags: feedback?(rcampbell)
Comment 4•12 years ago
|
||
Try was quiet so I've got it to make builds with this patch:
https://tbpl.mozilla.org/?tree=Try&rev=8070d44b63ff
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 758925 [details] [diff] [review]
v1
Review of attachment 758925 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! This looks good, apart from a few (maybe) unnecessary changes. Let me know if I can help with anything for the test.
::: browser/devtools/netmonitor/netmonitor-view.js
@@ +12,4 @@
> const REQUESTS_REFRESH_RATE = 50; // ms
> const REQUESTS_HEADERS_SAFE_BOUNDS = 30; // px
> const REQUESTS_WATERFALL_SAFE_BOUNDS = 90; // px
> +const REQUESTS_WATERFALL_HEADER_TICKS_MULTIPLE = 125; // ms
Why 125? You were pretty much guaranteed to never get 5, it was just the lowest multiple possible. In practice, it just makes sure that the bars intervals are spaced by numbers ending in 5 or 0.
Please revert this to 5 if you don't have a good reason for changing it.
@@ +16,2 @@
> const REQUESTS_WATERFALL_HEADER_TICKS_SPACING_MIN = 60; // px
> +const REQUESTS_WATERFALL_BACKGROUND_TICKS_MULTIPLE = 125; // ms
Ditto.
@@ +18,2 @@
> const REQUESTS_WATERFALL_BACKGROUND_TICKS_SCALES = 3;
> +const REQUESTS_WATERFALL_BACKGROUND_TICKS_SPACING_MIN = 15; // px
Ditto.
@@ +944,3 @@
> }
> + timingStep <<= 1;
> + }
I also don't entirely understand why you reversed the while logic, using 'break' instead of 'continue'. If I'm reading this correctly, it does the exact same thing :)
Don't hate me for saying this, but please revert it if you don't have a good reason for this. Maybe readability was on your mind? That's pretty subjective I'd say, and both implementations can be argued upon. Hell, you could even turn this in a for loop if you wanted to :D
@@ +1006,2 @@
>
> + while (true) {
Ditto :)
Attachment #758925 -
Flags: feedback?(vporof) → feedback+
Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 758925 [details] [diff] [review]
v1
Review of attachment 758925 [details] [diff] [review]:
-----------------------------------------------------------------
what victor said! canceling feedback.
Attachment #758925 -
Flags: feedback?(rcampbell)
Updated•12 years ago
|
Assignee: geoff → nobody
Status: ASSIGNED → NEW
Assignee | ||
Comment 7•12 years ago
|
||
Sad to see you unassign yourself Geoff. Would it be ok if I carried on your work?
Comment 8•12 years ago
|
||
Go for it. I haven't the time.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #744688 -
Attachment is obsolete: true
Attachment #758925 -
Attachment is obsolete: true
Attachment #8355859 -
Flags: review?(rcampbell)
Reporter | ||
Comment 11•11 years ago
|
||
Comment on attachment 8355859 [details] [diff] [review]
v2
Review of attachment 8355859 [details] [diff] [review]:
-----------------------------------------------------------------
looks good. I'll try this out locally, but expect it'll Just Work.
Thanks for starting this, Geoff!
Attachment #8355859 -
Flags: review?(rcampbell) → review+
Assignee | ||
Comment 12•11 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 13•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 29
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•