• yurys@chromium.org's avatar
    Introduce THREADED_PROFILED_TEST macro · 2ab2e484
    yurys@chromium.org authored
    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
    R=svenpanne@chromium.org
    
    Review URL: https://codereview.chromium.org/17072002
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15220 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    2ab2e484
Name
Last commit
Last update
..
cctest Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...