summaryrefslogtreecommitdiffstats
path: root/cc/debug/rendering_stats.cc
diff options
context:
space:
mode:
authoralexst@chromium.org <alexst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 00:39:01 +0000
committeralexst@chromium.org <alexst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 00:39:01 +0000
commit62049567333baa9069fbc1e251334a97505bd0d7 (patch)
treea134a7b056e074fc2d2c2fe6d6609a5eac729468 /cc/debug/rendering_stats.cc
parent2c7b8bfe72cc3b50b979a05dfd031b3ebfb7e2d3 (diff)
downloadchromium_src-62049567333baa9069fbc1e251334a97505bd0d7.zip
chromium_src-62049567333baa9069fbc1e251334a97505bd0d7.tar.gz
chromium_src-62049567333baa9069fbc1e251334a97505bd0d7.tar.bz2
cc: Chromify rendering_stats
BUG= TBR=jamesr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189428 Review URL: https://chromiumcodereview.appspot.com/12780025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/rendering_stats.cc')
-rw-r--r--cc/debug/rendering_stats.cc124
1 files changed, 63 insertions, 61 deletions
diff --git a/cc/debug/rendering_stats.cc b/cc/debug/rendering_stats.cc
index 28e7089..6b43169 100644
--- a/cc/debug/rendering_stats.cc
+++ b/cc/debug/rendering_stats.cc
@@ -7,72 +7,74 @@
namespace cc {
RenderingStats::RenderingStats()
- : numAnimationFrames(0),
- numFramesSentToScreen(0),
- droppedFrameCount(0),
- totalCommitCount(0),
- totalPixelsPainted(0),
- totalPixelsRasterized(0),
- numImplThreadScrolls(0),
- numMainThreadScrolls(0),
- numLayersDrawn(0),
- numMissingTiles(0),
- totalDeferredImageDecodeCount(0),
- totalDeferredImageCacheHitCount(0),
- totalImageGatheringCount(0) {
-}
+ : animation_frame_count(0),
+ screen_frame_count(0),
+ dropped_frame_count(0),
+ total_commit_count(0),
+ total_pixels_painted(0),
+ total_pixels_rasterized(0),
+ num_impl_thread_scrolls(0),
+ num_main_thread_scrolls(0),
+ num_layers_drawn(0),
+ num_missing_tiles(0),
+ total_deferred_image_decode_count(0),
+ total_deferred_image_cache_hit_count(0),
+ total_image_gathering_count(0) {}
void RenderingStats::EnumerateFields(Enumerator* enumerator) const {
- enumerator->AddInt64("numAnimationFrames", numAnimationFrames);
- enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen);
- enumerator->AddInt64("droppedFrameCount", droppedFrameCount);
- enumerator->AddDouble("totalPaintTimeInSeconds",
- totalPaintTime.InSecondsF());
- enumerator->AddDouble("totalRasterizeTimeInSeconds",
- totalRasterizeTime.InSecondsF());
- enumerator->AddDouble("totalRasterizeTimeForNowBinsOnPendingTree",
- totalRasterizeTimeForNowBinsOnPendingTree.InSecondsF());
- enumerator->AddDouble("totalCommitTimeInSeconds",
- totalCommitTime.InSecondsF());
- enumerator->AddInt64("totalCommitCount", totalCommitCount);
- enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted);
- enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized);
- enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls);
- enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls);
- enumerator->AddInt64("numLayersDrawn", numLayersDrawn);
- enumerator->AddInt64("numMissingTiles", numMissingTiles);
- enumerator->AddInt64("totalDeferredImageDecodeCount",
- totalDeferredImageDecodeCount);
- enumerator->AddInt64("totalDeferredImageCacheHitCount",
- totalDeferredImageCacheHitCount);
- enumerator->AddInt64("totalImageGatheringCount", totalImageGatheringCount);
- enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds",
- totalDeferredImageDecodeTime.InSecondsF());
- enumerator->AddDouble("totalImageGatheringTimeInSeconds",
- totalImageGatheringTime.InSecondsF());
+ enumerator->AddInt64("numAnimationFrames", animation_frame_count);
+ enumerator->AddInt64("numFramesSentToScreen", screen_frame_count);
+ enumerator->AddInt64("droppedFrameCount", dropped_frame_count);
+ enumerator->AddDouble("totalPaintTimeInSeconds",
+ total_paint_time.InSecondsF());
+ enumerator->AddDouble("totalRasterizeTimeInSeconds",
+ total_rasterize_time.InSecondsF());
+ enumerator->AddDouble(
+ "totalRasterizeTimeForNowBinsOnPendingTree",
+ total_rasterize_time_for_now_bins_on_pending_tree.InSecondsF());
+ enumerator->AddDouble("totalCommitTimeInSeconds",
+ total_commit_time.InSecondsF());
+ enumerator->AddInt64("totalCommitCount", total_commit_count);
+ enumerator->AddInt64("totalPixelsPainted", total_pixels_painted);
+ enumerator->AddInt64("totalPixelsRasterized", total_pixels_rasterized);
+ enumerator->AddInt64("numImplThreadScrolls", num_impl_thread_scrolls);
+ enumerator->AddInt64("numMainThreadScrolls", num_main_thread_scrolls);
+ enumerator->AddInt64("numLayersDrawn", num_layers_drawn);
+ enumerator->AddInt64("numMissingTiles", num_missing_tiles);
+ enumerator->AddInt64("totalDeferredImageDecodeCount",
+ total_deferred_image_decode_count);
+ enumerator->AddInt64("totalDeferredImageCacheHitCount",
+ total_deferred_image_cache_hit_count);
+ enumerator->AddInt64("totalImageGatheringCount",
+ total_image_gathering_count);
+ enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds",
+ total_deferred_image_decode_time.InSecondsF());
+ enumerator->AddDouble("totalImageGatheringTimeInSeconds",
+ total_image_gathering_time.InSecondsF());
}
void RenderingStats::Add(const RenderingStats& other) {
- numAnimationFrames += other.numAnimationFrames;
- numFramesSentToScreen += other.numFramesSentToScreen;
- droppedFrameCount += other.droppedFrameCount;
- totalPaintTime += other.totalPaintTime;
- totalRasterizeTime += other.totalRasterizeTime;
- totalRasterizeTimeForNowBinsOnPendingTree +=
- other.totalRasterizeTimeForNowBinsOnPendingTree;
- totalCommitTime += other.totalCommitTime;
- totalCommitCount += other.totalCommitCount;
- totalPixelsPainted += other.totalPixelsPainted;
- totalPixelsRasterized += other.totalPixelsRasterized;
- numImplThreadScrolls += other.numImplThreadScrolls;
- numMainThreadScrolls += other.numMainThreadScrolls;
- numLayersDrawn += other.numLayersDrawn;
- numMissingTiles += other.numMissingTiles;
- totalDeferredImageDecodeCount += other.totalDeferredImageDecodeCount;
- totalDeferredImageCacheHitCount += other.totalDeferredImageCacheHitCount;
- totalImageGatheringCount += other.totalImageGatheringCount;
- totalDeferredImageDecodeTime += other.totalDeferredImageDecodeTime;
- totalImageGatheringTime += other.totalImageGatheringTime;
+ animation_frame_count += other.animation_frame_count;
+ screen_frame_count += other.screen_frame_count;
+ dropped_frame_count += other.dropped_frame_count;
+ total_paint_time += other.total_paint_time;
+ total_rasterize_time += other.total_rasterize_time;
+ total_rasterize_time_for_now_bins_on_pending_tree +=
+ other.total_rasterize_time_for_now_bins_on_pending_tree;
+ total_commit_time += other.total_commit_time;
+ total_commit_count += other.total_commit_count;
+ total_pixels_painted += other.total_pixels_painted;
+ total_pixels_rasterized += other.total_pixels_rasterized;
+ num_impl_thread_scrolls += other.num_impl_thread_scrolls;
+ num_main_thread_scrolls += other.num_main_thread_scrolls;
+ num_layers_drawn += other.num_layers_drawn;
+ num_missing_tiles += other.num_missing_tiles;
+ total_deferred_image_decode_count += other.total_deferred_image_decode_count;
+ total_deferred_image_cache_hit_count +=
+ other.total_deferred_image_cache_hit_count;
+ total_image_gathering_count += other.total_image_gathering_count;
+ total_deferred_image_decode_time += other.total_deferred_image_decode_time;
+ total_image_gathering_time += other.total_image_gathering_time;
}
} // namespace cc