Reviewers: dcarney, Sven Panne,
Description:
Introduce THREADED_PROFILED_TEST macro
A bunch of tests in test-api.cc need to be executed two times: with CPU
profiler
on and off to check different code paths. There are only two such tests at
the
moment but I'm going to add more and having this logic duplicated in all
these
tests look awkward. The tests are executed as part of Threading* tests and
there
is no much sense in running CPU profiler in that case. This change addresses
both problems by introducing THREADED_PROFILED_TEST macro which mosly
resembles
THREADED_TEST except that when such test is executed as a standalone test
(not
part of a test-api/Threading*) it will first run the test normally and the
start
CPU profiler and run the test again.
BUG=244580
Please review this at https://codereview.chromium.org/17072002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M test/cctest/cctest.h
M test/cctest/cctest.cc
M test/cctest/test-api.cc
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.