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

Issue 2105943002: Expose TickSample and its APIs in v8-profiler.h (Closed)

Created:
4 years, 5 months ago by lpy
Modified:
4 years, 5 months ago
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Expose TickSample and its APIs in v8-profiler.h We want to eventually move the profiling functionality out of V8 as library, this patch exposes TickSample and its APIs in v8-profiler.h so that when embedders use library, they can have more details. Minor change: Rename tick-sample.[h|cc] to simulator-helper.[h|cc]. BUG=v8:4789 LOG=N Committed: https://crrev.com/3172f6a9ce72e7318dd55239677dd542a3fab9e6 Cr-Commit-Position: refs/heads/master@{#37564}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase & address comments. #

Total comments: 12

Patch Set 3 : address comments #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : update & rebase #

Patch Set 6 : Make internal::TickSample #

Total comments: 4

Patch Set 7 : address comments #

Total comments: 6

Patch Set 8 : address nits #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -129 lines) Patch
M include/v8-profiler.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -6 lines 0 comments Download
M src/log.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/log.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -7 lines 0 comments Download
M src/profiler/cpu-profiler.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M src/profiler/profile-generator.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/profiler/profile-generator.cc View 1 2 3 4 5 3 chunks +11 lines, -11 lines 0 comments Download
D src/profiler/tick-sample.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -41 lines 0 comments Download
M src/profiler/tick-sample.cc View 1 2 3 4 5 6 6 chunks +47 lines, -34 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-log-stack-tracer.cc View 1 2 3 4 3 chunks +7 lines, -10 lines 0 comments Download
M test/cctest/trace-extension.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/trace-extension.cc View 1 2 3 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
lpy
PTAL. One question is, how can we mark Isolate::GetStackSample as "will be deprecated", since we ...
4 years, 5 months ago (2016-06-28 21:04:04 UTC) #2
alph
https://codereview.chromium.org/2105943002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2105943002/diff/1/src/api.cc#newcode8331 src/api.cc:8331: DISABLE_ASAN void TickSample::Init(Isolate* v8_isolate, Don't move that much logic ...
4 years, 5 months ago (2016-06-28 22:09:02 UTC) #3
lpy
Thanks, I made an update. PTAL. https://codereview.chromium.org/2105943002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2105943002/diff/1/src/api.cc#newcode8331 src/api.cc:8331: DISABLE_ASAN void TickSample::Init(Isolate* ...
4 years, 5 months ago (2016-06-28 23:02:54 UTC) #4
alph
https://codereview.chromium.org/2105943002/diff/20001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/2105943002/diff/20001/include/v8-profiler.h#newcode50 include/v8-profiler.h:50: struct TickSample { Why did you remove the timestamp ...
4 years, 5 months ago (2016-06-29 19:39:09 UTC) #5
lpy
Comments addressed, ptal. https://codereview.chromium.org/2105943002/diff/20001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/2105943002/diff/20001/include/v8-profiler.h#newcode50 include/v8-profiler.h:50: struct TickSample { On 2016/06/29 19:39:09, ...
4 years, 5 months ago (2016-06-29 20:17:40 UTC) #6
alph
https://codereview.chromium.org/2105943002/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2105943002/diff/80001/src/api.cc#newcode7576 src/api.cc:7576: const_cast<RegisterState*>(&state))) { please avoid using const_cast, as the caller ...
4 years, 5 months ago (2016-06-30 21:18:08 UTC) #8
lpy
Thanks, ptal. https://codereview.chromium.org/2105943002/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2105943002/diff/80001/src/api.cc#newcode7576 src/api.cc:7576: const_cast<RegisterState*>(&state))) { On 2016/06/30 21:18:08, alph wrote: ...
4 years, 5 months ago (2016-06-30 22:51:29 UTC) #9
alph
lgtm https://codereview.chromium.org/2105943002/diff/160001/src/profiler/cpu-profiler.cc File src/profiler/cpu-profiler.cc (right): https://codereview.chromium.org/2105943002/diff/160001/src/profiler/cpu-profiler.cc#newcode52 src/profiler/cpu-profiler.cc:52: record.sample.timestamp = record.sample.pc == nullptr nit: You can ...
4 years, 5 months ago (2016-07-01 00:38:13 UTC) #12
lpy
Thanks, I updated the CL. Yang@, ptal. https://codereview.chromium.org/2105943002/diff/160001/src/profiler/cpu-profiler.cc File src/profiler/cpu-profiler.cc (right): https://codereview.chromium.org/2105943002/diff/160001/src/profiler/cpu-profiler.cc#newcode52 src/profiler/cpu-profiler.cc:52: record.sample.timestamp = ...
4 years, 5 months ago (2016-07-01 01:00:10 UTC) #13
alph
https://codereview.chromium.org/2105943002/diff/180001/src/log.cc File src/log.cc (right): https://codereview.chromium.org/2105943002/diff/180001/src/log.cc#newcode660 src/log.cc:660: sample->timestamp = base::TimeTicks::HighResolutionNow(); not needed? https://codereview.chromium.org/2105943002/diff/180001/src/profiler/cpu-profiler.h File src/profiler/cpu-profiler.h (right): ...
4 years, 5 months ago (2016-07-01 01:08:58 UTC) #14
lpy
https://codereview.chromium.org/2105943002/diff/180001/src/log.cc File src/log.cc (right): https://codereview.chromium.org/2105943002/diff/180001/src/log.cc#newcode660 src/log.cc:660: sample->timestamp = base::TimeTicks::HighResolutionNow(); On 2016/07/01 01:08:57, alph wrote: > ...
4 years, 5 months ago (2016-07-01 17:33:38 UTC) #15
Yang
On 2016/07/01 17:33:38, lpy wrote: > https://codereview.chromium.org/2105943002/diff/180001/src/log.cc > File src/log.cc (right): > > https://codereview.chromium.org/2105943002/diff/180001/src/log.cc#newcode660 > ...
4 years, 5 months ago (2016-07-04 05:46:15 UTC) #16
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-06 11:23:15 UTC) #17
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/2105943002/220001
4 years, 5 months ago (2016-07-06 18:14:57 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 5 months ago (2016-07-06 18:37:17 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 18:40:40 UTC) #23
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3172f6a9ce72e7318dd55239677dd542a3fab9e6
Cr-Commit-Position: refs/heads/master@{#37564}

Powered by Google App Engine
This is Rietveld 408576698