WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
[IMAGE] After
(597.90 KB, image/png)
2019-01-31 14:12 PST
,
Joseph Pecoraro
no flags
Details
[PATCH] Proposed Fix
(2.91 KB, patch)
2019-01-31 14:13 PST
,
Joseph Pecoraro
hi
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-01-31 13:37:25 PST
<
rdar://problem/47714279
>
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)
Comment on
attachment 360776
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=360776&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:739 > + displayName = WI.UIString("%s \u2013 %s (%s)").format(selectionStart, selectionEnd, duration);
Oops localized string.
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
https://trac.webkit.org/changeset/240866/webkit
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug