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

Issue 18058008: CPUProfiler: Improve line numbers support in profiler. (Closed)

Created:
7 years, 5 months ago by loislo
Modified:
7 years, 5 months ago
Reviewers:
alph, yurys, Yang, Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

CPUProfiler: Improve line numbers support in profiler. 1) report line number even if a script has no resource_name (evals); a) do that for already compiled functions in log.cc; b) do that for fresh evals in compiler.cc; 2) Implement the test for LineNumbers and make it fast and stable, otherwise we have to wait for tick samples; a) move processor_->Join() call into new Processor::StopSynchronously method; b) Process all the CodeEvents even if we are stopping Processor thread; c) make getters for generator and processor; 3) Fix the test for Jit that didn't expect line numbers; 4) Minor refactoring: a) in ProcessTicks; b) rename enqueue_order_ to last_code_event_id_ for better readability; c) rename dequeue_order_ to last_processed_code_event_id_ and make it a member for better readability; BUG= TEST=test-profile-generator/LineNumber R=jkummerow@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15530

Patch Set 1 #

Total comments: 13

Patch Set 2 : comments addressed #

Patch Set 3 : cosmetic changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -49 lines) Patch
M src/compiler.cc View 1 2 chunks +4 lines, -3 lines 1 comment Download
M src/cpu-profiler.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M src/cpu-profiler.cc View 1 5 chunks +31 lines, -27 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/log.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +12 lines, -7 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-profile-generator.cc View 1 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
loislo
7 years, 5 months ago (2013-07-05 12:23:07 UTC) #1
yurys
https://codereview.chromium.org/18058008/diff/1/src/cpu-profiler.cc File src/cpu-profiler.cc (right): https://codereview.chromium.org/18058008/diff/1/src/cpu-profiler.cc#newcode81 src/cpu-profiler.cc:81: while (ProcessCodeEvent()) { } Why do we have to ...
7 years, 5 months ago (2013-07-05 13:10:00 UTC) #2
loislo
https://codereview.chromium.org/18058008/diff/1/src/cpu-profiler.cc File src/cpu-profiler.cc (right): https://codereview.chromium.org/18058008/diff/1/src/cpu-profiler.cc#newcode81 src/cpu-profiler.cc:81: while (ProcessCodeEvent()) { } On 2013/07/05 13:10:00, Yury Semikhatsky ...
7 years, 5 months ago (2013-07-05 13:15:37 UTC) #3
yurys
lgtm https://codereview.chromium.org/18058008/diff/10007/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/18058008/diff/10007/src/compiler.cc#newcode1204 src/compiler.cc:1204: USE(line_num); It seems that you can drop this ...
7 years, 5 months ago (2013-07-06 05:03:21 UTC) #4
Jakob Kummerow
rubber-stamp LGTM
7 years, 5 months ago (2013-07-06 07:52:53 UTC) #5
loislo
7 years, 5 months ago (2013-07-07 11:42:42 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r15530 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698