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

Side by Side Diff: cc/rendering_stats.h

Issue 10982078: Adding hooks for gathering total pixels painted and rasterized stats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 #ifndef CCRenderingStats_h 5 #ifndef CCRenderingStats_h
6 #define CCRenderingStats_h 6 #define CCRenderingStats_h
7 7
8 namespace cc { 8 namespace cc {
9 9
10 struct RenderingStats { 10 struct RenderingStats {
11 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co m/138641. 11 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co m/138641.
12 int numAnimationFrames; 12 int numAnimationFrames;
13 int numFramesSentToScreen; 13 int numFramesSentToScreen;
14 int droppedFrameCount; 14 int droppedFrameCount;
15 double totalPaintTimeInSeconds; 15 double totalPaintTimeInSeconds;
16 double totalRasterizeTimeInSeconds; 16 double totalRasterizeTimeInSeconds;
17 double totalCommitTimeInSeconds; 17 double totalCommitTimeInSeconds;
18 size_t totalCommitCount; 18 size_t totalCommitCount;
19 int64_t totalPixelsPainted;
jamesr 2012/10/29 23:38:49 why is this int64_t instead of size_t? Either use
hartmanng 2012/10/30 20:10:51 brianderson@ requested that I switch it to 64-bit
20 int64_t totalPixelsRasterized;
19 size_t numImplThreadScrolls; 21 size_t numImplThreadScrolls;
20 size_t numMainThreadScrolls; 22 size_t numMainThreadScrolls;
21 23
22 RenderingStats() 24 RenderingStats();
23 : numAnimationFrames(0)
24 , numFramesSentToScreen(0)
25 , droppedFrameCount(0)
26 , totalPaintTimeInSeconds(0)
27 , totalRasterizeTimeInSeconds(0)
28 , totalCommitTimeInSeconds(0)
29 , totalCommitCount(0)
30 , numImplThreadScrolls(0)
31 , numMainThreadScrolls(0)
32 {
33 }
34 }; 25 };
35 26
36 } 27 }
37 28
38 #endif 29 #endif
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/rendering_stats.cc » ('j') | cc/rendering_stats.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698