CPU profiler: sample call stack on profiling start.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Jun 2010 13:52:49 +0000 (13:52 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Jun 2010 13:52:49 +0000 (13:52 +0000)
commitcdc09c5073f574998311adf8f690f52d36c1ea64
treedb1aa6c7ebc1051b23abe09434433d663d9a87d2
parentf939ccbc2647437cf9ebea91e429fcc33b4b0f2d
CPU profiler: sample call stack on profiling start.

This simplifies writing tests a lot, because it is now possible
to guarantee that certain function will present in a profile by
starting profiler from inside it.

Review URL: http://codereview.chromium.org/2438002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4769 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/cpu-profiler.cc
src/cpu-profiler.h
src/profile-generator.h
src/unbound-queue-inl.h
src/unbound-queue.h
test/cctest/test-profile-generator.cc