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

Issue 279183002: Use LapTimer in rasterize_and_record micro benchmark. (Closed)

Created:
6 years, 7 months ago by Dominik Grewe
Modified:
6 years, 7 months ago
Reviewers:
danakj, ernstm, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Use LapTimer in rasterize_and_record micro benchmark. Timing record or rasterize on very small layers can be problematic. The operations are very short and timing them individually can lead to quantization. Use a LapTimer to run the operations we're timing for at least a specified amount of time to avoid this problem. Moves LapTimer from cc/test to cc/debug so it's accessible outside of testing code. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270170

Patch Set 1 #

Patch Set 2 : Remove unused Now() #

Total comments: 4

Patch Set 3 : Move consts into function and timer into loop. #

Patch Set 4 : rebase & update gyp #

Patch Set 5 : Add CC_EXPORT to LapTimer class. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -191 lines) Patch
M cc/cc.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A + cc/debug/lap_timer.h View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
A + cc/debug/lap_timer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 1 2 3 chunks +19 lines, -11 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 2 3 chunks +29 lines, -20 lines 0 comments Download
M cc/layers/layer_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/picture_pile_impl_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 2 chunks +1 line, -1 line 0 comments Download
M cc/resources/task_graph_runner_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
D cc/test/lap_timer.h View 1 chunk +0 lines, -63 lines 0 comments Download
D cc/test/lap_timer.cc View 1 chunk +0 lines, -81 lines 0 comments Download
M cc/trees/layer_tree_host_common_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/occlusion_tracker_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Dominik Grewe
PTAL. I moved the bitmap & canvas initialization into the loop. Without re-initializing them each ...
6 years, 7 months ago (2014-05-12 12:14:11 UTC) #1
danakj
+ernstm https://codereview.chromium.org/279183002/diff/20001/cc/debug/rasterize_and_record_benchmark.cc File cc/debug/rasterize_and_record_benchmark.cc (right): https://codereview.chromium.org/279183002/diff/20001/cc/debug/rasterize_and_record_benchmark.cc#newcode124 cc/debug/rasterize_and_record_benchmark.cc:124: LapTimer timer(kWarmupRuns, Can you move the LapTimer constant ...
6 years, 7 months ago (2014-05-12 17:16:41 UTC) #2
Dominik Grewe
On 2014/05/12 17:16:41, danakj wrote: > +ernstm > > https://codereview.chromium.org/279183002/diff/20001/cc/debug/rasterize_and_record_benchmark.cc > File cc/debug/rasterize_and_record_benchmark.cc (right): > ...
6 years, 7 months ago (2014-05-12 17:24:23 UTC) #3
vmpstr
This makes it a little bit awkward in that we now use the lap timer ...
6 years, 7 months ago (2014-05-12 18:46:08 UTC) #4
Dominik Grewe
On 2014/05/12 18:46:08, vmpstr wrote: > This makes it a little bit awkward in that ...
6 years, 7 months ago (2014-05-12 19:01:56 UTC) #5
vmpstr
On 2014/05/12 19:01:56, Dominik Grewe wrote: > On 2014/05/12 18:46:08, vmpstr wrote: > > This ...
6 years, 7 months ago (2014-05-12 19:36:39 UTC) #6
Dominik Grewe
On 2014/05/12 19:36:39, vmpstr wrote: > On 2014/05/12 19:01:56, Dominik Grewe wrote: > > On ...
6 years, 7 months ago (2014-05-12 20:24:06 UTC) #7
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 7 months ago (2014-05-12 20:24:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/279183002/40001
6 years, 7 months ago (2014-05-12 20:24:39 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 00:38:21 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 00:48:35 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/141734) linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/24430)
6 years, 7 months ago (2014-05-13 00:48:36 UTC) #12
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 7 months ago (2014-05-13 15:03:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/279183002/80001
6 years, 7 months ago (2014-05-13 15:03:09 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 19:41:01 UTC) #15
Message was sent while issue was closed.
Change committed as 270170

Powered by Google App Engine
This is Rietveld 408576698