Move *BSD and Solaris Sampler implementation into sampler.cc
authoryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 15 Apr 2013 13:57:41 +0000 (13:57 +0000)
committeryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 15 Apr 2013 13:57:41 +0000 (13:57 +0000)
commit1596afa7f9131d67b79908d09ead8354864a0e82
treea5bc68535dbafb9603b4d1424a5948d7bed67def
parent591a8ec86ce7d5b68e0209c67d5f2e9b276c60de
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

Review URL: https://codereview.chromium.org/13852005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14265 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/log.cc
src/platform-freebsd.cc
src/platform-linux.cc
src/platform-openbsd.cc
src/platform-solaris.cc
src/platform.h
src/sampler.cc [new file with mode: 0644]
src/sampler.h [new file with mode: 0644]
src/v8.cc
src/v8globals.h
tools/gyp/v8.gyp