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

Issue 2396733002: [profiler] Tracing-based CPU profiler. (Closed)

Created:
4 years, 2 months ago by alph
Modified:
4 years, 2 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[profiler] Tracing-based CPU profiler. A new V8 API object v8::TracingCpuProfiler is introduced. Client can create it on an isolate to enable JS CPU profiles collected during tracing session. Once the v8.cpu_profile2 tracing category is enabled the profiler emits CpuProfile and CpuProfileChunk events with the profile data. BUG=chromium:406277 Committed: https://crrev.com/4b575dfceff4575ddd5ba0c74089c127d9b68c4f Cr-Commit-Position: refs/heads/master@{#40054}

Patch Set 1 #

Total comments: 11

Patch Set 2 : addressing comments. #

Total comments: 12

Patch Set 3 : Addressing comments + moving traced-value back to src/tracing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -35 lines) Patch
M include/v8-profiler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/profiler/cpu-profiler.cc View 1 chunk +4 lines, -16 lines 0 comments Download
M src/profiler/profile-generator.h View 1 2 7 chunks +15 lines, -2 lines 0 comments Download
M src/profiler/profile-generator.cc View 1 2 7 chunks +100 lines, -9 lines 0 comments Download
M src/profiler/profile-generator-inl.h View 1 chunk +6 lines, -4 lines 0 comments Download
M src/profiler/tracing-cpu-profiler.h View 1 chunk +20 lines, -1 line 0 comments Download
M src/profiler/tracing-cpu-profiler.cc View 1 2 chunks +55 lines, -2 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 2 chunks +79 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
alph
Folks, could you please take a look.
4 years, 2 months ago (2016-10-05 01:49:16 UTC) #4
fmeawad
https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h File src/profiler/traced-value.h (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h#newcode19 src/profiler/traced-value.h:19: class TracedValue : public ConvertableToTraceFormat { I don't think ...
4 years, 2 months ago (2016-10-05 15:40:54 UTC) #7
fmeawad
https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h File src/profiler/traced-value.h (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h#newcode19 src/profiler/traced-value.h:19: class TracedValue : public ConvertableToTraceFormat { I don't think ...
4 years, 2 months ago (2016-10-05 15:40:54 UTC) #8
alph
https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h File src/profiler/traced-value.h (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h#newcode19 src/profiler/traced-value.h:19: class TracedValue : public ConvertableToTraceFormat { On 2016/10/05 15:40:54, ...
4 years, 2 months ago (2016-10-05 15:47:38 UTC) #11
fmeawad
https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h File src/profiler/traced-value.h (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/traced-value.h#newcode19 src/profiler/traced-value.h:19: class TracedValue : public ConvertableToTraceFormat { On 2016/10/05 15:47:37, ...
4 years, 2 months ago (2016-10-05 15:56:08 UTC) #12
caseq
https://codereview.chromium.org/2396733002/diff/1/src/profiler/profile-generator.cc File src/profiler/profile-generator.cc (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/profile-generator.cc#newcode431 src/profiler/profile-generator.cc:431: StreamPendingTraceEvents(); So what would be the implications of serializing ...
4 years, 2 months ago (2016-10-05 16:53:53 UTC) #13
alph
ptal https://codereview.chromium.org/2396733002/diff/1/src/profiler/profile-generator.cc File src/profiler/profile-generator.cc (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/profile-generator.cc#newcode431 src/profiler/profile-generator.cc:431: StreamPendingTraceEvents(); On 2016/10/05 16:53:53, caseq wrote: > So ...
4 years, 2 months ago (2016-10-05 17:21:57 UTC) #14
fmeawad
lgtm
4 years, 2 months ago (2016-10-05 17:34:33 UTC) #15
caseq
https://codereview.chromium.org/2396733002/diff/20001/src/profiler/profile-generator.cc File src/profiler/profile-generator.cc (right): https://codereview.chromium.org/2396733002/diff/20001/src/profiler/profile-generator.cc#newcode428 src/profiler/profile-generator.cc:428: top_down_.pending_nodes_count() >= kNodesFlushCount) add {} https://codereview.chromium.org/2396733002/diff/20001/src/profiler/profile-generator.cc#newcode470 src/profiler/profile-generator.cc:470: value->BeginDictionary(); nit: ...
4 years, 2 months ago (2016-10-05 18:05:12 UTC) #16
alph
ptal https://codereview.chromium.org/2396733002/diff/20001/src/profiler/profile-generator.cc File src/profiler/profile-generator.cc (right): https://codereview.chromium.org/2396733002/diff/20001/src/profiler/profile-generator.cc#newcode428 src/profiler/profile-generator.cc:428: top_down_.pending_nodes_count() >= kNodesFlushCount) On 2016/10/05 18:05:11, caseq wrote: ...
4 years, 2 months ago (2016-10-05 19:20:40 UTC) #17
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-06 12:14:42 UTC) #18
alph
https://codereview.chromium.org/2396733002/diff/1/src/profiler/profile-generator.cc File src/profiler/profile-generator.cc (right): https://codereview.chromium.org/2396733002/diff/1/src/profiler/profile-generator.cc#newcode431 src/profiler/profile-generator.cc:431: StreamPendingTraceEvents(); On 2016/10/05 17:21:56, alph wrote: > On 2016/10/05 ...
4 years, 2 months ago (2016-10-06 17:37:41 UTC) #19
caseq
lgtm
4 years, 2 months ago (2016-10-06 18:01:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2396733002/40001
4 years, 2 months ago (2016-10-06 18:12:08 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 18:14:10 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 18:14:31 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4b575dfceff4575ddd5ba0c74089c127d9b68c4f
Cr-Commit-Position: refs/heads/master@{#40054}

Powered by Google App Engine
This is Rietveld 408576698