WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
100936
Web Inspector: Timeline: Improve time/timeEnd appearance.
https://bugs.webkit.org/show_bug.cgi?id=100936
Summary
Web Inspector: Timeline: Improve time/timeEnd appearance.
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
Details
Formatted Diff
Diff
Patch
(14.57 KB, patch)
2012-11-01 07:19 PDT
,
eustas.bug
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
eustas.bug
Comment 1
2012-11-01 02:53:13 PDT
Created
attachment 171803
[details]
Patch
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
Created
attachment 171844
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug