Summary: | Web Inspector: Timeline: nest time/timeEnd records when possible (in glue-mode) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | eustas.bug | ||||||||
Component: | Web Inspector (Deprecated) | Assignee: | eustas.bug | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | apavlov, bweinstein, caseq, eustas.bug, joepeck, keishi, loislo, pfeldman, pmuellr, rik, vsevik, web-inspector-bugs, webkit.review.bot, yurys | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Bug Depends on: | 100936 | ||||||||||
Bug Blocks: | 99830 | ||||||||||
Attachments: |
|
Created attachment 173004 [details]
Patch
Comment on attachment 173004 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173004&action=review > Source/WebCore/inspector/front-end/TimelinePresentationModel.js:602 > + openRecord.children.splice(insertionIndexForObjectInListSortedByFunction(timeRecord.startTime, openRecord.children, compareStartTime), 0, timeRecord); We only glue causation. I.e. we can glue TimerFire to TimerInstall. We can't glue timeEnd to anything, because it already has a parent. The rules for glueing should stay simple. Comment on attachment 173004 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173004&action=review >> Source/WebCore/inspector/front-end/TimelinePresentationModel.js:602 >> + openRecord.children.splice(insertionIndexForObjectInListSortedByFunction(timeRecord.startTime, openRecord.children, compareStartTime), 0, timeRecord); > > We only glue causation. I.e. we can glue TimerFire to TimerInstall. We can't glue timeEnd to anything, because it already has a parent. The rules for glueing should stay simple. To be more precise, we do not glue, but set correct parents to records to highlight their causation. In this case, developers would be happy to see how time/timeEnd relate to each other. Created attachment 180921 [details]
Patch
rebased
Comment on attachment 180921 [details] Patch Clearing flags on attachment: 180921 Committed r140123: <http://trac.webkit.org/changeset/140123> All reviewed patches have been landed. Closing bug. |
Created attachment 170140 [details] Snapshot Nesting time/timeEnd intervals will provide a better overview on what is happening.