RESOLVED FIXED 173746
Web Inspector: Script Timeline bubbles sometimes appear to miss large events
https://bugs.webkit.org/show_bug.cgi?id=173746
Summary Web Inspector: Script Timeline bubbles sometimes appear to miss large events
Joseph Pecoraro
Reported 2017-06-22 16:52:22 PDT
Summary: Script Timeline bubbles sometimes appear to miss large events. In some cases I've seen a Script event, like a Timer Firing, taking "500ms" but not see a bubble in the timeline matching that size. This makes the script bubbles look suspiciously small, and in the case of Layout + Rendering triggered by script I'd expect to see overlap between the two.
Attachments
[PATCH] Proposed Fix (3.14 KB, patch)
2017-06-22 16:54 PDT, Joseph Pecoraro
bburg: review+
[IMAGE] Before - Missing Script that triggered Layout (187.61 KB, image/png)
2017-06-22 16:54 PDT, Joseph Pecoraro
no flags
[IMAGE] After - Larger Script bubbles including overlap (183.67 KB, image/png)
2017-06-22 16:54 PDT, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2017-06-22 16:54:12 PDT
Created attachment 313672 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 2 2017-06-22 16:54:36 PDT
Created attachment 313673 [details] [IMAGE] Before - Missing Script that triggered Layout
Joseph Pecoraro
Comment 3 2017-06-22 16:54:59 PDT
Created attachment 313674 [details] [IMAGE] After - Larger Script bubbles including overlap
Blaze Burg
Comment 4 2017-06-23 10:36:00 PDT
Comment on attachment 313672 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=313672&action=review r=me > Source/WebInspectorUI/UserInterface/Models/Timeline.js:74 > + // Because records can be nested, its posisble that outer records with an early start time Nit: possible > Source/WebInspectorUI/UserInterface/Models/Timeline.js:133 > + _tryInsertInSortedOrder(record) The name seems funny to me without mentioning 'record' somehow. Maybe Objective-C has corrupted me. > Source/WebInspectorUI/UserInterface/Models/Timeline.js:144 > + let end = Math.max(this._records.length - 20, 0); Likewise, these were terse and I thought they were backwards given the for loop header. Maybe earliestRecordIndex and latestRecordIndex?
Radar WebKit Bug Importer
Comment 5 2017-06-23 10:37:15 PDT
Joseph Pecoraro
Comment 6 2017-06-23 19:46:33 PDT
Note You need to log in before you can comment on or make changes to this bug.