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

Issue 596533002: Initial implementation of GetStackSample sampling profiler API. (Closed)

Created:
6 years, 3 months ago by alph
Modified:
6 years, 2 months ago
CC:
fmeawad, Paweł Hajdan Jr., v8-dev
Project:
v8
Visibility:
Public.

Description

Initial implementation of GetStackSample sampling profiler API. The patch is based on https://codereview.chromium.org/578163002/#ps20001 made by gholap@chromium.org LOG=N BUG=v8:3490 R=bmeurer@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=24285

Patch Set 1 #

Total comments: 14

Patch Set 2 : int -> size_t #

Patch Set 3 : some more int -> size_t #

Patch Set 4 : Fixing Win64 compile #

Total comments: 2

Patch Set 5 : Exposed VM state. #

Total comments: 18

Patch Set 6 : Addressing yurys@ comments. #

Total comments: 10

Patch Set 7 : Addressing more comments. #

Patch Set 8 : Enabled tests on MacOS and ARM #

Total comments: 2

Patch Set 9 : Fix MacOS build #

Patch Set 10 : Fix ARM tests. #

Patch Set 11 : Fix ARM32 build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -62 lines) Patch
M include/v8.h View 1 2 3 4 2 chunks +36 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 4 chunks +17 lines, -8 lines 0 comments Download
M src/globals.h View 1 2 3 4 1 chunk +0 lines, -16 lines 0 comments Download
M src/sampler.h View 1 2 3 4 4 chunks +7 lines, -9 lines 0 comments Download
M src/sampler.cc View 1 2 3 4 5 6 7 8 9 8 chunks +41 lines, -28 lines 0 comments Download
M src/vm-state.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A test/cctest/test-sampler-api.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +245 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
alph
6 years, 3 months ago (2014-09-22 19:18:49 UTC) #2
gholap
https://codereview.chromium.org/596533002/diff/1/test/cctest/cctest.status File test/cctest/cctest.status (right): https://codereview.chromium.org/596533002/diff/1/test/cctest/cctest.status#newcode355 test/cctest/cctest.status:355: 'test-sampler-api/*': [SKIP], https://codereview.chromium.org/588623002/ uses POSIX signals for the tests. ...
6 years, 3 months ago (2014-09-23 05:39:18 UTC) #4
gholap
On 2014/09/23 05:39:18, gholap wrote: > https://codereview.chromium.org/596533002/diff/1/test/cctest/cctest.status > File test/cctest/cctest.status (right): > > https://codereview.chromium.org/596533002/diff/1/test/cctest/cctest.status#newcode355 > ...
6 years, 3 months ago (2014-09-23 05:40:16 UTC) #5
noordhuis
https://codereview.chromium.org/596533002/diff/1/test/cctest/test-sampler-api.cc File test/cctest/test-sampler-api.cc (right): https://codereview.chromium.org/596533002/diff/1/test/cctest/test-sampler-api.cc#newcode249 test/cctest/test-sampler-api.cc:249: return; There is a getcontext() on OS X but ...
6 years, 3 months ago (2014-09-23 05:44:35 UTC) #6
Benedikt Meurer
https://codereview.chromium.org/596533002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/596533002/diff/1/include/v8.h#newcode4568 include/v8.h:4568: int GetStackSample(const RegisterState& state, void** frames, Nit: int -> ...
6 years, 3 months ago (2014-09-23 05:47:48 UTC) #7
alph
ptal https://codereview.chromium.org/596533002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/596533002/diff/1/include/v8.h#newcode4568 include/v8.h:4568: int GetStackSample(const RegisterState& state, void** frames, On 2014/09/23 ...
6 years, 3 months ago (2014-09-23 07:30:46 UTC) #8
yurys
https://codereview.chromium.org/596533002/diff/60001/src/sampler.cc File src/sampler.cc (right): https://codereview.chromium.org/596533002/diff/60001/src/sampler.cc#newcode623 src/sampler.cc:623: Address js_entry_sp = isolate->js_entry_sp(); I expected that we wouldn't ...
6 years, 3 months ago (2014-09-23 09:32:03 UTC) #9
alph
https://codereview.chromium.org/596533002/diff/60001/src/sampler.cc File src/sampler.cc (right): https://codereview.chromium.org/596533002/diff/60001/src/sampler.cc#newcode623 src/sampler.cc:623: Address js_entry_sp = isolate->js_entry_sp(); On 2014/09/23 09:32:03, yurys wrote: ...
6 years, 3 months ago (2014-09-23 11:13:02 UTC) #10
yurys
https://codereview.chromium.org/596533002/diff/80001/src/vm-state.h File src/vm-state.h (right): https://codereview.chromium.org/596533002/diff/80001/src/vm-state.h#newcode19 src/vm-state.h:19: style: remove empty line. https://codereview.chromium.org/596533002/diff/80001/test/cctest/test-sampler-api.cc File test/cctest/test-sampler-api.cc (right): https://codereview.chromium.org/596533002/diff/80001/test/cctest/test-sampler-api.cc#newcode22 ...
6 years, 3 months ago (2014-09-23 14:57:53 UTC) #11
alph
ptal https://codereview.chromium.org/596533002/diff/80001/src/vm-state.h File src/vm-state.h (right): https://codereview.chromium.org/596533002/diff/80001/src/vm-state.h#newcode19 src/vm-state.h:19: On 2014/09/23 14:57:53, yurys wrote: > style: remove ...
6 years, 3 months ago (2014-09-24 13:12:19 UTC) #12
yurys
https://codereview.chromium.org/596533002/diff/100001/test/cctest/test-sampler-api.cc File test/cctest/test-sampler-api.cc (right): https://codereview.chromium.org/596533002/diff/100001/test/cctest/test-sampler-api.cc#newcode10 test/cctest/test-sampler-api.cc:10: #include "src/simulator.h" Do we still need this include? https://codereview.chromium.org/596533002/diff/100001/test/cctest/test-sampler-api.cc#newcode42 ...
6 years, 3 months ago (2014-09-24 13:44:07 UTC) #13
alph
https://codereview.chromium.org/596533002/diff/100001/test/cctest/test-sampler-api.cc File test/cctest/test-sampler-api.cc (right): https://codereview.chromium.org/596533002/diff/100001/test/cctest/test-sampler-api.cc#newcode10 test/cctest/test-sampler-api.cc:10: #include "src/simulator.h" On 2014/09/24 13:44:07, yurys wrote: > Do ...
6 years, 3 months ago (2014-09-24 14:00:52 UTC) #14
yurys
lgtm
6 years, 3 months ago (2014-09-24 14:04:15 UTC) #15
loislo
https://codereview.chromium.org/596533002/diff/140001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/596533002/diff/140001/include/v8.h#newcode1434 include/v8.h:1434: size_t frames_count; Can we join together both output structures ...
6 years, 3 months ago (2014-09-24 14:41:29 UTC) #16
alph
https://codereview.chromium.org/596533002/diff/140001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/596533002/diff/140001/include/v8.h#newcode1434 include/v8.h:1434: size_t frames_count; On 2014/09/24 14:41:29, loislo wrote: > Can ...
6 years, 3 months ago (2014-09-24 14:57:39 UTC) #17
Benedikt Meurer
Tests are failing on ARM?
6 years, 2 months ago (2014-09-25 06:08:39 UTC) #18
alph
On 2014/09/25 06:08:39, Benedikt Meurer wrote: > Tests are failing on ARM? Fixed. Simulator is ...
6 years, 2 months ago (2014-09-25 14:05:12 UTC) #20
Benedikt Meurer
lgtm
6 years, 2 months ago (2014-09-26 04:48:16 UTC) #21
alph
6 years, 2 months ago (2014-09-29 13:00:23 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 (id:200001) manually as 24285 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698