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

Issue 1635005: Allow new CPU profiling subsystem to coexist nicely with the old one. (Closed)

Created:
10 years, 8 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Allow new CPU profiling subsystem to coexist nicely with the old one. This is to make possible enabling usage of the new profiling subsystem in Chromium without much hassle. The idea is pretty simple: unless the new profiling API is used, all works as usual, as soon as Chromium starts to use the new API, it will work too. Committed: http://code.google.com/p/v8/source/detail?r=4382

Patch Set 1 #

Patch Set 2 : Fix TickSampleEvent #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -100 lines) Patch
M SConstruct View 1 chunk +1 line, -1 line 0 comments Download
M src/cpu-profiler.h View 2 chunks +10 lines, -6 lines 0 comments Download
M src/cpu-profiler.cc View 1 4 chunks +7 lines, -4 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 chunk +16 lines, -5 lines 2 comments Download
M src/flag-definitions.h View 1 chunk +1 line, -1 line 0 comments Download
M src/globals.h View 2 chunks +1 line, -6 lines 0 comments Download
M src/log.h View 3 chunks +13 lines, -26 lines 0 comments Download
M src/log.cc View 3 chunks +0 lines, -9 lines 0 comments Download
M src/platform-linux.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M src/platform-macos.cc View 2 chunks +5 lines, -10 lines 0 comments Download
M src/platform-win32.cc View 2 chunks +5 lines, -10 lines 0 comments Download
M src/v8.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 3 chunks +21 lines, -1 line 0 comments Download
M test/cctest/test-profile-generator.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Søren Thygesen Gjesse
LGTM Will the end goal to totally remove the need for ENABLE_CPP_PROFILES_PROCESSOR? http://codereview.chromium.org/1635005/diff/2001/3002 File src/cpu-profiler-inl.h ...
10 years, 8 months ago (2010-04-12 06:56:28 UTC) #1
mnaganov (inactive)
10 years, 8 months ago (2010-04-12 07:17:45 UTC) #2
Thanks!

Yes, it is now possible to merge CPP_PROFILES_PROCESSOR defines with
LOGGING_AND_PROFILING. I'm leaving them mainly for two reasons:
 - explicitly highlighting the new code for other developers, and; 
 - being able to cloak the new code in case if something goes wrong.

http://codereview.chromium.org/1635005/diff/2001/3002
File src/cpu-profiler-inl.h (right):

http://codereview.chromium.org/1635005/diff/2001/3002#newcode64
src/cpu-profiler-inl.h:64: result->filler = 1;  // !=
SamplingCircularQueue::kClear.
On 2010/04/12 06:56:28, Søren Gjesse wrote:
> Please add 
> 
> ASSERT(result->filler = != SamplingCircularQueue::kClear);

Done.

Powered by Google App Engine
This is Rietveld 408576698