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

Unified Diff: cc/CCRenderingStats.h

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use uint64_t and rename variables to *Count Created 8 years, 2 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
Index: cc/CCRenderingStats.h
diff --git a/cc/CCRenderingStats.h b/cc/CCRenderingStats.h
index fb178a89722fe38fb7fd69a483c6023b305e44c1..ababe95ccca4b8c1049e5d70ab0eac1252dedac7 100644
--- a/cc/CCRenderingStats.h
+++ b/cc/CCRenderingStats.h
@@ -8,27 +8,32 @@
namespace cc {
struct CCRenderingStats {
- // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.com/138641.
- int numAnimationFrames;
- int numFramesSentToScreen;
- int droppedFrameCount;
+ uint64_t compositorSyncCount;
dtu 2012/10/04 21:41:09 nit: Sorry, int64_t is preferred to uint64_t in th
brianderson 2012/10/05 00:17:32 Ok, will change to int64_t.
+ uint64_t compositorSyncActiveCount;
+ uint64_t compositorFrameCount;
+ uint64_t mainAnimationFrameCount;
+ uint64_t implAnimationFrameCount;
+ uint64_t droppedFrameCount;
double totalPaintTimeInSeconds;
double totalRasterizeTimeInSeconds;
double totalCommitTimeInSeconds;
- size_t totalCommitCount;
- size_t numImplThreadScrolls;
- size_t numMainThreadScrolls;
+ uint64_t totalCommitCount;
+ uint64_t implThreadScrollCount;
+ uint64_t mainThreadScrollCount;
CCRenderingStats()
- : numAnimationFrames(0)
- , numFramesSentToScreen(0)
+ : compositorSyncCount(0)
+ , compositorSyncActiveCount(0)
+ , compositorFrameCount(0)
+ , mainAnimationFrameCount(0)
+ , implAnimationFrameCount(0)
, droppedFrameCount(0)
, totalPaintTimeInSeconds(0)
, totalRasterizeTimeInSeconds(0)
, totalCommitTimeInSeconds(0)
, totalCommitCount(0)
- , numImplThreadScrolls(0)
- , numMainThreadScrolls(0)
+ , implThreadScrollCount(0)
+ , mainThreadScrollCount(0)
{
}
};
« cc/CCFrameRateController.cpp ('K') | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698