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

Side by Side Diff: cc/rendering_stats.cc

Issue 11478016: Add a stat to the smoothness benchmark for avg number of missing tiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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),
11 numFramesSentToScreen(0), 11 numFramesSentToScreen(0),
12 droppedFrameCount(0), 12 droppedFrameCount(0),
13 totalPaintTimeInSeconds(0), 13 totalPaintTimeInSeconds(0),
14 totalRasterizeTimeInSeconds(0), 14 totalRasterizeTimeInSeconds(0),
15 totalCommitTimeInSeconds(0), 15 totalCommitTimeInSeconds(0),
16 totalCommitCount(0), 16 totalCommitCount(0),
17 totalPixelsPainted(0), 17 totalPixelsPainted(0),
18 totalPixelsRasterized(0), 18 totalPixelsRasterized(0),
19 numImplThreadScrolls(0), 19 numImplThreadScrolls(0),
20 numMainThreadScrolls(0), 20 numMainThreadScrolls(0),
21 numLayersDrawn(0) { 21 numLayersDrawn(0),
22 numMissingTiles(0) {
22 } 23 }
23 24
24 void RenderingStats::EnumerateFields(Enumerator* enumerator) const { 25 void RenderingStats::EnumerateFields(Enumerator* enumerator) const {
25 enumerator->AddInt64("numAnimationFrames", numAnimationFrames); 26 enumerator->AddInt64("numAnimationFrames", numAnimationFrames);
26 enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen); 27 enumerator->AddInt64("numFramesSentToScreen", numFramesSentToScreen);
27 enumerator->AddInt64("droppedFrameCount", droppedFrameCount); 28 enumerator->AddInt64("droppedFrameCount", droppedFrameCount);
28 enumerator->AddDouble("totalPaintTimeInSeconds", totalPaintTimeInSeconds); 29 enumerator->AddDouble("totalPaintTimeInSeconds", totalPaintTimeInSeconds);
29 enumerator->AddDouble("totalRasterizeTimeInSeconds", 30 enumerator->AddDouble("totalRasterizeTimeInSeconds",
30 totalRasterizeTimeInSeconds); 31 totalRasterizeTimeInSeconds);
31 enumerator->AddDouble("totalCommitTimeInSeconds", totalCommitTimeInSeconds); 32 enumerator->AddDouble("totalCommitTimeInSeconds", totalCommitTimeInSeconds);
32 enumerator->AddInt64("totalCommitCount", totalCommitCount); 33 enumerator->AddInt64("totalCommitCount", totalCommitCount);
33 enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted); 34 enumerator->AddInt64("totalPixelsPainted", totalPixelsPainted);
34 enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized); 35 enumerator->AddInt64("totalPixelsRasterized", totalPixelsRasterized);
35 enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls); 36 enumerator->AddInt64("numImplThreadScrolls", numImplThreadScrolls);
36 enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls); 37 enumerator->AddInt64("numMainThreadScrolls", numMainThreadScrolls);
37 enumerator->AddInt64("numLayersDrawn", numLayersDrawn); 38 enumerator->AddInt64("numLayersDrawn", numLayersDrawn);
39 enumerator->AddInt64("numMissingTiles", numMissingTiles);
38 } 40 }
39 41
40 } // namespace cc 42 } // namespace cc
OLDNEW
« cc/layer_tree_host_impl.h ('K') | « cc/rendering_stats.h ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698