Unflake and speedup JsNative*Sample cpu profile tests
authoralph@chromium.org <alph@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 11 Jul 2014 09:06:12 +0000 (09:06 +0000)
committeralph@chromium.org <alph@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 11 Jul 2014 09:06:12 +0000 (09:06 +0000)
commite64230c1f9069be9db754f8715e89ef1efb7b338
treec50f5e6e9240d7485e71d1e2c40e503ea0831cf6
parent4468f441b00047de27156c27a4f64f2d96a06bdd
Unflake and speedup JsNative*Sample cpu profile tests

Instead of running cpu profiler for a hundred milliseconds,
collecting samples distributed in a non-deterministic way all along
the code, make the tests rely on a single sample we collect on
the profiler start.

R=bmeurer@chromium.org, yurys@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22345 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/profile-generator.cc
test/cctest/cctest.status
test/cctest/test-cpu-profiler.cc