RESOLVED FIXED 194109
Web Inspector: Timeline time range selection should show duration alongside start and end
https://bugs.webkit.org/show_bug.cgi?id=194109
Summary Web Inspector: Timeline time range selection should show duration alongside s...
Joseph Pecoraro
Reported 2019-01-31 13:36:27 PST
Timeline time range selection should show duration alongside start and end Currently we see something like: 710.0ms - 1.12s Would be nice to see: 710.0ms - 1.12s (410ms) Note that we can special case a zero leading digit since the end time will be clear: 0ms - 800ms Does not need: 0ms - 800ms (800ms)
Attachments
[PATCH] Proposed Fix (2.11 KB, patch)
2019-01-31 14:12 PST, Joseph Pecoraro
no flags
[IMAGE] After (597.90 KB, image/png)
2019-01-31 14:12 PST, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (2.91 KB, patch)
2019-01-31 14:13 PST, Joseph Pecoraro
hi: review+
Radar WebKit Bug Importer
Comment 1 2019-01-31 13:37:25 PST
Joseph Pecoraro
Comment 2 2019-01-31 14:12:14 PST
Created attachment 360776 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 3 2019-01-31 14:12:41 PST
Created attachment 360777 [details] [IMAGE] After
Joseph Pecoraro
Comment 4 2019-01-31 14:12:56 PST Comment hidden (obsolete)
Joseph Pecoraro
Comment 5 2019-01-31 14:13:57 PST
Created attachment 360778 [details] [PATCH] Proposed Fix
Devin Rousso
Comment 6 2019-01-31 14:19:13 PST
Comment on attachment 360778 [details] [PATCH] Proposed Fix rs=me > Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:732 > let selectionStart = Number.secondsToString(startValue, true); NIT: rather than pass `true`, we should use a `const` for all of them. const higherResolution = true; > Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:734 > + const epsilon = 0.0001; I get that we're using `0.0001` because it's a decimal point away from 1/1000, but should we try using `Number.EPSILON` instead?
Joseph Pecoraro
Comment 7 2019-02-01 13:26:07 PST
Note You need to log in before you can comment on or make changes to this bug.