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

Issue 10857035: Moving cpu profiling into its own thread. (Closed)

Created:
8 years, 4 months ago by rogulenko
Modified:
8 years, 2 months ago
Reviewers:
caseq, Jakob Kummerow
Base URL:
http://git.chromium.org/external/v8.git@master
Visibility:
Public.

Description

Moving cpu profiling into its own thread. BUG=None Committed: https://code.google.com/p/v8/source/detail?r=12649

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixed remarks from caseq #

Patch Set 3 : added a flag to switch between old and new versions #

Total comments: 5

Patch Set 4 : fixed more remarks #

Total comments: 1

Patch Set 5 : moved SendProfilingSignal #

Total comments: 2

Patch Set 6 : fixed remarks on previous patch #

Patch Set 7 : added support for different platforms #

Patch Set 8 : removed the flag and implementation for different platforms #

Patch Set 9 : added a flag to set sampling rate #

Total comments: 2

Patch Set 10 : moved installing/restoring handler of SIGPROF to Sampler::Start/Stop #

Total comments: 10

Patch Set 11 : fixed code style #

Patch Set 12 : inlined variable #

Patch Set 13 : fixed tests #

Patch Set 14 : added { } #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -97 lines) Patch
M src/cpu-profiler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M src/cpu-profiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +36 lines, -17 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M src/platform.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M src/platform-cygwin.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-freebsd.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-linux.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +71 lines, -74 lines 0 comments Download
M src/platform-macos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-openbsd.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-solaris.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-win32.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
caseq
http://codereview.chromium.org/10857035/diff/1/src/cpu-profiler.cc File src/cpu-profiler.cc (left): http://codereview.chromium.org/10857035/diff/1/src/cpu-profiler.cc#oldcode252 src/cpu-profiler.cc:252: YieldCPU(); So we're running the loop with 100% usage ...
8 years, 4 months ago (2012-08-16 14:39:22 UTC) #1
caseq
http://codereview.chromium.org/10857035/diff/9001/src/cpu-profiler.cc File src/cpu-profiler.cc (right): http://codereview.chromium.org/10857035/diff/9001/src/cpu-profiler.cc#newcode188 src/cpu-profiler.cc:188: bool ProfilerEventsProcessor::ProcessCodeEvent(unsigned& dequeue_order) { Output parameters should be pointers, ...
8 years, 4 months ago (2012-08-17 12:56:35 UTC) #2
caseq
http://codereview.chromium.org/10857035/diff/8002/src/cpu-profiler.cc File src/cpu-profiler.cc (right): http://codereview.chromium.org/10857035/diff/8002/src/cpu-profiler.cc#newcode260 src/cpu-profiler.cc:260: if (FLAG_sample_stack_in_postprocessor_thread) { if (sampler_ != NULL) http://codereview.chromium.org/10857035/diff/12002/src/cpu-profiler.cc File ...
8 years, 4 months ago (2012-08-17 16:59:28 UTC) #3
caseq
http://codereview.chromium.org/10857035/diff/23002/src/platform-linux.cc File src/platform-linux.cc (right): http://codereview.chromium.org/10857035/diff/23002/src/platform-linux.cc#newcode1234 src/platform-linux.cc:1234: CpuProfilerSignalHandler::InstallSignalHandler(); Can we do this as necessary -- e.g. ...
8 years, 3 months ago (2012-09-03 11:59:58 UTC) #4
Jakob Kummerow
http://codereview.chromium.org/10857035/diff/30001/src/cpu-profiler.cc File src/cpu-profiler.cc (right): http://codereview.chromium.org/10857035/diff/30001/src/cpu-profiler.cc#newcode48 src/cpu-profiler.cc:48: ProfilerEventsProcessor::ProfilerEventsProcessor(ProfileGenerator* generator, Sampler* sampler, int interval_in_useconds) long line http://codereview.chromium.org/10857035/diff/30001/src/cpu-profiler.cc#newcode211 ...
8 years, 3 months ago (2012-09-04 11:10:51 UTC) #5
Jakob Kummerow
LGTM caseq: Any more comments?
8 years, 3 months ago (2012-09-04 13:39:52 UTC) #6
caseq
8 years, 3 months ago (2012-09-04 13:42:31 UTC) #7
On 2012/09/04 13:39:52, Jakob wrote:
> LGTM
> 
> caseq: Any more comments?

LGTM as well. Thanks a lot, Jakob!

Powered by Google App Engine
This is Rietveld 408576698