Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Issue 12919002: Allow recording individual samples in addition to the aggregated CPU profiles (Closed)

Created:
7 years, 9 months ago by yurys
Modified:
7 years, 9 months ago
Reviewers:
Jakob Kummerow, alph, loislo
CC:
chromium-reviews, pfeldman, caseq
Visibility:
Public.

Description

Allow recording individual samples in addition to the aggregated CPU profiles CPU profiler API is extended with methods that allow to retrieve individual samples from profile. Each sample is presented as a pointer to a node in the top-down profile tree. The samples will let us tie JS performance to time. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=13980

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test that no samples are recorded if record_samples is false #

Patch Set 3 : Removed unnecessary IsDead checks that slow down API #

Patch Set 4 : One more IsDead check removed #

Total comments: 2

Patch Set 5 : Fixed indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -37 lines) Patch
M include/v8-profiler.h View 3 chunks +19 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 3 chunks +18 lines, -2 lines 0 comments Download
M src/cpu-profiler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/cpu-profiler.cc View 2 chunks +9 lines, -7 lines 0 comments Download
M src/profile-generator.h View 9 chunks +14 lines, -5 lines 0 comments Download
M src/profile-generator.cc View 1 7 chunks +9 lines, -10 lines 0 comments Download
M src/profile-generator-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-cpu-profiler.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-profile-generator.cc View 1 2 3 4 5 chunks +90 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yurys
7 years, 9 months ago (2013-03-18 12:46:45 UTC) #1
loislo
https://codereview.chromium.org/12919002/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/12919002/diff/1/src/profile-generator.cc#newcode473 src/profile-generator.cc:473: samples_.Add(top_frame_node); it seems that you collect the samples regardless ...
7 years, 9 months ago (2013-03-18 12:56:39 UTC) #2
yurys
https://codereview.chromium.org/12919002/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/12919002/diff/1/src/profile-generator.cc#newcode473 src/profile-generator.cc:473: samples_.Add(top_frame_node); On 2013/03/18 12:56:39, loislo wrote: > it seems ...
7 years, 9 months ago (2013-03-18 12:58:08 UTC) #3
loislo
On 2013/03/18 12:58:08, Yury Semikhatsky wrote: > https://codereview.chromium.org/12919002/diff/1/src/profile-generator.cc > File src/profile-generator.cc (right): > > https://codereview.chromium.org/12919002/diff/1/src/profile-generator.cc#newcode473 ...
7 years, 9 months ago (2013-03-18 13:15:51 UTC) #4
Jakob Kummerow
lgtm https://codereview.chromium.org/12919002/diff/8001/test/cctest/test-profile-generator.cc File test/cctest/test-profile-generator.cc (right): https://codereview.chromium.org/12919002/diff/8001/test/cctest/test-profile-generator.cc#newcode721 test/cctest/test-profile-generator.cc:721: CheckNodeIds(node->children()->at(i), expectedId); nit: indentation
7 years, 9 months ago (2013-03-18 17:18:08 UTC) #5
yurys
https://codereview.chromium.org/12919002/diff/8001/test/cctest/test-profile-generator.cc File test/cctest/test-profile-generator.cc (right): https://codereview.chromium.org/12919002/diff/8001/test/cctest/test-profile-generator.cc#newcode721 test/cctest/test-profile-generator.cc:721: CheckNodeIds(node->children()->at(i), expectedId); On 2013/03/18 17:18:08, Jakob wrote: > nit: ...
7 years, 9 months ago (2013-03-19 08:02:58 UTC) #6
yurys
7 years, 9 months ago (2013-03-19 08:12:30 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r13980.

Powered by Google App Engine
This is Rietveld 408576698