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

Side by Side Diff: cc/rendering_stats.cc

Issue 12209022: cc: add rasterize time to continuous painting graph data in impl-side-painting (Closed) Base URL: http://git.chromium.org/chromium/src.git@raster
Patch Set: Rebase to 182752 Created 7 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/rendering_stats.h" 5 #include "cc/rendering_stats.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 RenderingStats::RenderingStats() 9 RenderingStats::RenderingStats()
10 : numAnimationFrames(0), 10 : numAnimationFrames(0),
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 void RenderingStats::EnumerateFields(Enumerator* enumerator) const { 25 void RenderingStats::EnumerateFields(Enumerator* enumerator) const {
26 enumerator->AddInt64("numAnimationFrames", numAnimationFrames); 26 enumerator->AddInt64("numAnimationFrames", numAnimationFrames);
27 enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen); 27 enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen);
28 enumerator->AddInt64("droppedFrameCount", droppedFrameCount); 28 enumerator->AddInt64("droppedFrameCount", droppedFrameCount);
29 enumerator->AddDouble("totalPaintTimeInSeconds", 29 enumerator->AddDouble("totalPaintTimeInSeconds",
30 totalPaintTime.InSecondsF()); 30 totalPaintTime.InSecondsF());
31 enumerator->AddDouble("totalRasterizeTimeInSeconds", 31 enumerator->AddDouble("totalRasterizeTimeInSeconds",
32 totalRasterizeTime.InSecondsF()); 32 totalRasterizeTime.InSecondsF());
33 enumerator->AddDouble("totalRasterizeTimeForNowBinsOnPendingTree",
34 totalRasterizeTimeForNowBinsOnPendingTree.InSecondsF());
33 enumerator->AddDouble("totalCommitTimeInSeconds", 35 enumerator->AddDouble("totalCommitTimeInSeconds",
34 totalCommitTime.InSecondsF()); 36 totalCommitTime.InSecondsF());
35 enumerator->AddInt64("totalCommitCount", totalCommitCount); 37 enumerator->AddInt64("totalCommitCount", totalCommitCount);
36 enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted); 38 enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted);
37 enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized); 39 enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized);
38 enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls); 40 enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls);
39 enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls); 41 enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls);
40 enumerator->AddInt64("numLayersDrawn", numLayersDrawn); 42 enumerator->AddInt64("numLayersDrawn", numLayersDrawn);
41 enumerator->AddInt64("numMissingTiles", numMissingTiles); 43 enumerator->AddInt64("numMissingTiles", numMissingTiles);
42 enumerator->AddInt64("totalDeferredImageDecodeCount", 44 enumerator->AddInt64("totalDeferredImageDecodeCount",
43 totalDeferredImageDecodeCount); 45 totalDeferredImageDecodeCount);
44 enumerator->AddInt64("totalDeferredImageCacheHitCount", 46 enumerator->AddInt64("totalDeferredImageCacheHitCount",
45 totalDeferredImageCacheHitCount); 47 totalDeferredImageCacheHitCount);
46 enumerator->AddInt64("totalImageGatheringCount", totalImageGatheringCount); 48 enumerator->AddInt64("totalImageGatheringCount", totalImageGatheringCount);
47 enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds", 49 enumerator->AddDouble("totalDeferredImageDecodeTimeInSeconds",
48 totalDeferredImageDecodeTime.InSecondsF()); 50 totalDeferredImageDecodeTime.InSecondsF());
49 enumerator->AddDouble("totalImageGatheringTimeInSeconds", 51 enumerator->AddDouble("totalImageGatheringTimeInSeconds",
50 totalImageGatheringTime.InSecondsF()); 52 totalImageGatheringTime.InSecondsF());
51 } 53 }
52 54
53 } // namespace cc 55 } // namespace cc
OLDNEW
« cc/paint_time_counter.h ('K') | « cc/rendering_stats.h ('k') | cc/ring_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698