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

Issue 11231002: Perform CPU sampling by CPU sampling thread only iff processing thread is not running. (Closed)

Created:
8 years, 2 months ago by caseq
Modified:
8 years, 1 month ago
Reviewers:
caseq1, Jakob Kummerow
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Perform CPU sampling by CPU sampling thread only iff processing thread is not running. - perform CPU profiler sampling in the sampler thread as we used to; - skip sampling in the sampling thread if processing thread is running; - only install SIGPROF handler when CPU profiling is enabled. BUG=v8:2364 Committed: https://code.google.com/p/v8/source/detail?r=12985

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments, fixed DoCpuProfile() on some platforms #

Patch Set 3 : fixed crash in tests due to absent sampler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -16 lines) Patch
M src/cpu-profiler.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/platform.h View 1 2 2 chunks +23 lines, -4 lines 0 comments Download
M src/platform-cygwin.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M src/platform-freebsd.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M src/platform-linux.cc View 1 2 6 chunks +46 lines, -6 lines 0 comments Download
M src/platform-macos.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M src/platform-nullos.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/platform-openbsd.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M src/platform-solaris.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M src/platform-win32.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
caseq1
Jakob, contrary to what we discussed, I reinstated sampling from the sampling thread as we ...
8 years, 2 months ago (2012-10-19 11:50:03 UTC) #1
Jakob Kummerow
Looks good; I have some minor comments. https://codereview.chromium.org/11231002/diff/1/src/platform-cygwin.cc File src/platform-cygwin.cc (right): https://codereview.chromium.org/11231002/diff/1/src/platform-cygwin.cc#newcode789 src/platform-cygwin.cc:789: I think ...
8 years, 2 months ago (2012-10-19 15:56:41 UTC) #2
caseq1
On 2012/10/19 15:56:41, Jakob wrote: > > https://codereview.chromium.org/11231002/diff/1/src/platform-cygwin.cc#newcode789 > src/platform-cygwin.cc:789: > I think the implementation ...
8 years, 2 months ago (2012-10-19 16:31:38 UTC) #3
Jakob Kummerow
LGTM. As discussed offline, I'll land this after the branch point.
8 years, 2 months ago (2012-10-23 12:17:06 UTC) #4
caseq1
8 years, 1 month ago (2012-11-16 10:22:22 UTC) #5
Fixed crash in tests due to removed check for sampler_

Powered by Google App Engine
This is Rietveld 408576698