Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Issue 17072002: Introduce THREADED_PROFILED_TEST macro (Closed)

Created:
7 years, 6 months ago by yurys
Modified:
7 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

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 R=svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15220

Patch Set 1 #

Patch Set 2 : Moved THREADED_PROFILED_TEST macro into test-api.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -108 lines) Patch
M test/cctest/test-api.cc View 1 4 chunks +78 lines, -108 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
yurys
7 years, 6 months ago (2013-06-14 11:46:26 UTC) #1
yurys
7 years, 6 months ago (2013-06-14 11:46:39 UTC) #2
dcarney
this seems reasonable, but so would a simple profile scope or something of that nature. ...
7 years, 6 months ago (2013-06-14 17:35:45 UTC) #3
yurys
On 2013/06/14 17:35:45, dcarney wrote: > this seems reasonable, but so would a simple profile ...
7 years, 6 months ago (2013-06-14 20:21:30 UTC) #4
yurys
On 2013/06/14 20:21:30, Yury Semikhatsky wrote: > On 2013/06/14 17:35:45, dcarney wrote: > > this ...
7 years, 6 months ago (2013-06-15 06:31:55 UTC) #5
yurys
On 2013/06/15 06:31:55, Yury Semikhatsky wrote: > On 2013/06/14 20:21:30, Yury Semikhatsky wrote: > > ...
7 years, 6 months ago (2013-06-17 10:24:05 UTC) #6
Sven Panne
lgtm
7 years, 6 months ago (2013-06-17 12:22:19 UTC) #7
yurys
7 years, 6 months ago (2013-06-20 06:47:17 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r15220 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698