Index: cc/rendering_stats.cc |
diff --git a/cc/rendering_stats.cc b/cc/rendering_stats.cc |
index 9c194e86aca7f7961e23205cdb5061c745a8365b..56e0c129e3d2afb7dfd9033ebf924b462d26111a 100644 |
--- a/cc/rendering_stats.cc |
+++ b/cc/rendering_stats.cc |
@@ -21,4 +21,20 @@ RenderingStats::RenderingStats() |
numLayersDrawn(0) { |
} |
+void RenderingStats::EnumerateFields(Enumerator* enumerator) const { |
+ enumerator->AddInt64("numAnimationFrames", numAnimationFrames); |
+ enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen); |
+ enumerator->AddInt64("droppedFrameCount", droppedFrameCount); |
+ enumerator->AddDouble("totalPaintTimeInSeconds", totalPaintTimeInSeconds); |
+ enumerator->AddDouble("totalRasterizeTimeInSeconds", |
+ totalRasterizeTimeInSeconds); |
+ enumerator->AddDouble("totalCommitTimeInSeconds", totalCommitTimeInSeconds); |
+ enumerator->AddInt64("totalCommitCount", totalCommitCount); |
+ enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted); |
+ enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized); |
+ enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls); |
+ enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls); |
+ enumerator->AddInt64("numLayersDrawn", numLayersDrawn); |
+} |
+ |
} // namespace cc |