diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 08:20:16 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 08:20:16 +0000 |
commit | 8b6cea09a979ffb5e9d625cc2b3a4587c1929a32 (patch) | |
tree | c7afb93aa45f3cc6691660ab17f7a9496dc87e2c /cc/debug/rendering_stats_instrumentation.cc | |
parent | c27fdee9d2b32a33ce6f323a5d0ef4f28f5f7792 (diff) | |
download | chromium_src-8b6cea09a979ffb5e9d625cc2b3a4587c1929a32.zip chromium_src-8b6cea09a979ffb5e9d625cc2b3a4587c1929a32.tar.gz chromium_src-8b6cea09a979ffb5e9d625cc2b3a4587c1929a32.tar.bz2 |
cc: Include analysis in raster benchmark costs
Insert analysis costs into the raster benchmark. This will make it
possible to combine analysis and raster into a single step and be
confident that it will not regress the total costs of rastering a tile.
ATTN perf sheriffs: this will regress benchmarks because it is doing
more work, but it is a more accurate representation of the work that
gets done per unit of raster work. This should be treated as a "perf
rebaseline" and not as a regression.
R=vmpstr@chromium.org
BUG=none
Review URL: https://codereview.chromium.org/74713006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/rendering_stats_instrumentation.cc')
-rw-r--r-- | cc/debug/rendering_stats_instrumentation.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/debug/rendering_stats_instrumentation.cc b/cc/debug/rendering_stats_instrumentation.cc index 3987b7e..63840a3 100644 --- a/cc/debug/rendering_stats_instrumentation.cc +++ b/cc/debug/rendering_stats_instrumentation.cc @@ -99,4 +99,13 @@ void RenderingStatsInstrumentation::AddRaster(base::TimeDelta duration, impl_stats_.rasterized_pixel_count += pixels; } +void RenderingStatsInstrumentation::AddAnalysis(base::TimeDelta duration, + int64 pixels) { + if (!record_rendering_stats_) + return; + + base::AutoLock scoped_lock(lock_); + impl_stats_.analysis_time += duration; +} + } // namespace cc |