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

Unified Diff: cc/rendering_stats.cc

Issue 11896002: [cc] Use base::TimeTicks in RenderStats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renderwidget too Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/rendering_stats.h ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/rendering_stats.cc
diff --git a/cc/rendering_stats.cc b/cc/rendering_stats.cc
index cf524e43dbfa755a826b2c94f86263d2382c6c5d..c7824a0b665760fd660cf834f8895cf47f09e22f 100644
--- a/cc/rendering_stats.cc
+++ b/cc/rendering_stats.cc
@@ -10,9 +10,6 @@ RenderingStats::RenderingStats()
: numAnimationFrames(0),
numFramesSentToScreen(0),
droppedFrameCount(0),
- totalPaintTimeInSeconds(0),
- totalRasterizeTimeInSeconds(0),
- totalCommitTimeInSeconds(0),
totalCommitCount(0),
totalPixelsPainted(0),
totalPixelsRasterized(0),
@@ -22,19 +19,19 @@ RenderingStats::RenderingStats()
numMissingTiles(0),
totalDeferredImageDecodeCount(0),
totalDeferredImageCacheHitCount(0),
- totalImageGatheringCount(0),
- totalDeferredImageDecodeTimeInSeconds(0),
- totalImageGatheringTimeInSeconds(0) {
+ totalImageGatheringCount(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("totalPaintTimeInSeconds",
+ totalPaintTime.InSecondsF());
enumerator->AddDouble("totalRasterizeTimeInSeconds",
- totalRasterizeTimeInSeconds);
- enumerator->AddDouble("totalCommitTimeInSeconds", totalCommitTimeInSeconds);
+ totalRasterizeTime.InSecondsF());
+ enumerator->AddDouble("totalCommitTimeInSeconds",
+ totalCommitTime.InSecondsF());
enumerator->AddInt64("totalCommitCount", totalCommitCount);
enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted);
enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized);
@@ -48,9 +45,9 @@ void RenderingStats::EnumerateFields(Enumerator* enumerator) const {
totalDeferredImageCacheHitCount);
enumerator->AddInt64("totalImageGatheringCount", totalImageGatheringCount);
enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds",
- totalDeferredImageDecodeTimeInSeconds);
+ totalDeferredImageDecodeTime.InSecondsF());
enumerator->AddDouble("totalImageGatheringTimeInSeconds",
- totalImageGatheringTimeInSeconds);
+ totalImageGatheringTime.InSecondsF());
}
} // namespace cc
« no previous file with comments | « cc/rendering_stats.h ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698