Bug 100936

Summary: Web Inspector: Timeline: Improve time/timeEnd appearance.
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:    
Bug Blocks: 100114    
Attachments:
Description Flags
Patch
none
Patch none

eustas.bug
Reported 2012-11-01 02:36:14 PDT
time/timeEnd records should be top level records only in "glue" mode. Also fixed minor bugs: - glued records add aggregated statistics to root record - glued records do not reduce their origin self time
Attachments
Patch (14.62 KB, patch)
2012-11-01 02:53 PDT, eustas.bug
no flags
Patch (14.57 KB, patch)
2012-11-01 07:19 PDT, eustas.bug
no flags
eustas.bug
Comment 1 2012-11-01 02:53:13 PDT
Andrey Kosyakov
Comment 2 2012-11-01 07:02:23 PDT
Comment on attachment 171803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=171803&action=review > Source/WebCore/inspector/front-end/TimelinePresentationModel.js:354 > + if (!origin.isRoot()) { > + origin.selfTime -= formattedRecord.endTime - formattedRecord.startTime; Why would we do this for adopted records? Shouldn't it be under if (origin) {} else? > Source/WebCore/inspector/front-end/TimelinePresentationModel.js:623 > + getOrigin: function() origin()
eustas.bug
Comment 3 2012-11-01 07:17:56 PDT
Comment on attachment 171803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=171803&action=review >> Source/WebCore/inspector/front-end/TimelinePresentationModel.js:354 >> + origin.selfTime -= formattedRecord.endTime - formattedRecord.startTime; > > Why would we do this for adopted records? Shouldn't it be under if (origin) {} else? There are two cases: 1) record is own record of its parent: in that case parent self time must be reduced (because self time is time delta minus all children time delta) 2) record is adopted: in that case origin record self time must be reduced (for the same reasons) This way - in both cases we must reduce self time record of "parent" record. But for adopted records the correct target is origin. >> Source/WebCore/inspector/front-end/TimelinePresentationModel.js:623 >> + getOrigin: function() > > origin() Done
eustas.bug
Comment 4 2012-11-01 07:19:46 PDT
Andrey Kosyakov
Comment 5 2012-11-02 06:49:05 PDT
Comment on attachment 171844 [details] Patch LGTM
WebKit Review Bot
Comment 6 2012-11-08 00:41:02 PST
Comment on attachment 171844 [details] Patch Clearing flags on attachment: 171844 Committed r133863: <http://trac.webkit.org/changeset/133863>
WebKit Review Bot
Comment 7 2012-11-08 00:41:06 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.