WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
112569
Web Inspector: use individual samples to construct CPU profile flame chart
https://bugs.webkit.org/show_bug.cgi?id=112569
Summary
Web Inspector: use individual samples to construct CPU profile flame chart
Yury Semikhatsky
Reported
2013-03-18 07:13:53 PDT
Now we build the chart based on the aggregated top-down tree. Using samples stream for that would allow to tie stack traces to the timeline.
Attachments
Patch
(14.43 KB, patch)
2013-03-18 07:16 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(14.32 KB, patch)
2013-03-18 07:18 PDT
,
Yury Semikhatsky
pfeldman
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Patch for landing
(18.40 KB, patch)
2013-03-21 01:00 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(15.54 KB, patch)
2013-03-22 03:59 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2013-03-18 07:16:24 PDT
Created
attachment 193554
[details]
Patch
Yury Semikhatsky
Comment 2
2013-03-18 07:16:48 PDT
(In reply to
comment #1
)
> Created an attachment (id=193554) [details] > Patch
This patch depends on the V8 change:
https://codereview.chromium.org/12919002/
which is not landed yet.
Yury Semikhatsky
Comment 3
2013-03-18 07:18:38 PDT
Created
attachment 193556
[details]
Patch
Ilya Tikhonovsky
Comment 4
2013-03-18 07:41:28 PDT
Comment on
attachment 193556
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193556&action=review
> Source/WebCore/inspector/front-end/FlameChart.js:166 > + var nodeCount = samples.length;
it is intervalCount and it is not equal to samples.length profileNodeCount <= intervalCount <= samplesCount So the arrays will use more memory than actually needed. BTW duration and startTime are integers now.
WebKit Review Bot
Comment 5
2013-03-18 07:48:06 PDT
Comment on
attachment 193556
[details]
Patch
Attachment 193556
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://webkit-commit-queue.appspot.com/results/17160558
WebKit Review Bot
Comment 6
2013-03-18 08:11:56 PDT
Comment on
attachment 193556
[details]
Patch
Attachment 193556
[details]
did not pass cr-linux-debug-ews (chromium-xvfb): Output:
http://webkit-commit-queue.appspot.com/results/17205550
Peter Beverloo (cr-android ews)
Comment 7
2013-03-18 08:19:56 PDT
Comment on
attachment 193556
[details]
Patch
Attachment 193556
[details]
did not pass cr-android-ews (chromium-android): Output:
http://webkit-commit-queue.appspot.com/results/17218396
Build Bot
Comment 8
2013-03-18 10:25:34 PDT
Comment on
attachment 193556
[details]
Patch
Attachment 193556
[details]
did not pass mac-ews (mac): Output:
http://webkit-commit-queue.appspot.com/results/17236083
New failing tests: inspector/profiler/cpu-profiler-profile-removal.html
Build Bot
Comment 9
2013-03-18 11:36:11 PDT
Comment on
attachment 193556
[details]
Patch
Attachment 193556
[details]
did not pass mac-ews (mac): Output:
http://webkit-commit-queue.appspot.com/results/17201699
New failing tests: inspector/profiler/cpu-profiler-profile-removal.html
Build Bot
Comment 10
2013-03-18 16:42:05 PDT
Comment on
attachment 193556
[details]
Patch
Attachment 193556
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-commit-queue.appspot.com/results/17218466
New failing tests: inspector/profiler/cpu-profiler-profile-removal.html
Pavel Feldman
Comment 11
2013-03-19 09:49:49 PDT
Comment on
attachment 193556
[details]
Patch Please mind the test failures.
Yury Semikhatsky
Comment 12
2013-03-21 01:00:25 PDT
Created
attachment 194198
[details]
Patch for landing
Yury Semikhatsky
Comment 13
2013-03-21 01:00:43 PDT
(In reply to
comment #4
)
> (From update of
attachment 193556
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=193556&action=review
> > > Source/WebCore/inspector/front-end/FlameChart.js:166 > > + var nodeCount = samples.length; > > it is intervalCount and it is not equal to samples.length > profileNodeCount <= intervalCount <= samplesCount > So the arrays will use more memory than actually needed. > > BTW duration and startTime are integers now.
Fixed.
Ilya Tikhonovsky
Comment 14
2013-03-21 01:18:53 PDT
Comment on
attachment 194198
[details]
Patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=194198&action=review
> Source/WebCore/inspector/front-end/FlameChart.js:216 > + ++index;
it has to be replaced with entries.length;
Yury Semikhatsky
Comment 15
2013-03-22 03:59:32 PDT
Created
attachment 194503
[details]
Patch
Yury Semikhatsky
Comment 16
2013-03-22 04:03:19 PDT
Committed
r146587
: <
http://trac.webkit.org/changeset/146587
>
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