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

Issue 13852005: Move *BSD and Solaris Sampler implementations into sampler.cc (Closed)

Created:
7 years, 8 months ago by yurys
Modified:
7 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Move *BSD and Solaris Sampler implementation into sampler.cc This is a first step to having profiler sampler implementation in one file with platform capabilities guarded with #ifdef. Otherwise we have very similar implementations scattered over platform-*.cc files which makes it hard to see differences and make changes. The next steps will be to merge win32, Mac OS X and Cygwin implementations into sampler.cc They suspend profiled thread instead of sending a signal but apart from that the logic is pretty much the same. Then I'm going to move sampler-related code from log.* into sampler.* BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=14265

Patch Set 1 #

Total comments: 14

Patch Set 2 : Comments partialy addressed #

Patch Set 3 : Removed class TickSample forward declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -1141 lines) Patch
M src/log.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M src/platform.h View 2 chunks +1 line, -93 lines 0 comments Download
M src/platform-freebsd.cc View 3 chunks +0 lines, -227 lines 0 comments Download
M src/platform-linux.cc View 3 chunks +0 lines, -347 lines 0 comments Download
M src/platform-openbsd.cc View 2 chunks +0 lines, -244 lines 0 comments Download
M src/platform-solaris.cc View 3 chunks +0 lines, -224 lines 0 comments Download
A src/sampler.h View 1 1 chunk +119 lines, -0 lines 0 comments Download
A src/sampler.cc View 1 1 chunk +480 lines, -0 lines 0 comments Download
M src/v8.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M src/v8globals.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tools/gyp/v8.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
yurys
Note that in this patch I use preprocessor variables described at http://sourceforge.net/p/predef/wiki/OperatingSystems/ to detect underlying ...
7 years, 8 months ago (2013-04-14 06:17:58 UTC) #1
Sven Panne
I really, really like the direction we're going here, I just have some small comments. ...
7 years, 8 months ago (2013-04-15 07:08:40 UTC) #2
yurys
https://codereview.chromium.org/13852005/diff/1/src/sampler.cc File src/sampler.cc (right): https://codereview.chromium.org/13852005/diff/1/src/sampler.cc#newcode29 src/sampler.cc:29: || defined(__NetBSD__) || defined(__sun) On 2013/04/15 07:08:40, Sven Panne ...
7 years, 8 months ago (2013-04-15 11:37:55 UTC) #3
Sven Panne
LGTM. As discussed offline, the plan is to merge the other platforms in a separate ...
7 years, 8 months ago (2013-04-15 12:20:38 UTC) #4
yurys
7 years, 8 months ago (2013-04-15 13:57:59 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r14265 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698