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

Unified 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: 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/rendering_stats.h
diff --git a/cc/rendering_stats.h b/cc/rendering_stats.h
index 96634986d70fe09ce3977bba411ba89f88fa565f..a101d25bb863b7b0f89a99e5db0087d81ef11f01 100644
--- a/cc/rendering_stats.h
+++ b/cc/rendering_stats.h
@@ -5,34 +5,27 @@
#ifndef CCRenderingStats_h
#define CCRenderingStats_h
+#include <base/basictypes.h>
Ian Vollick 2012/10/30 19:58:37 Please use quotes instead of angle brackets whenev
hartmanng 2012/10/30 20:10:51 Done.
+
namespace cc {
struct RenderingStats {
// FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.com/138641.
- int numAnimationFrames;
- int numFramesSentToScreen;
- int droppedFrameCount;
+ int64 numAnimationFrames;
+ int64 numFramesSentToScreen;
+ int64 droppedFrameCount;
double totalPaintTimeInSeconds;
double totalRasterizeTimeInSeconds;
double totalCommitTimeInSeconds;
size_t totalCommitCount;
- size_t numImplThreadScrolls;
- size_t numMainThreadScrolls;
+ int64 totalPixelsPainted;
+ int64 totalPixelsRasterized;
+ int64 numImplThreadScrolls;
+ int64 numMainThreadScrolls;
- RenderingStats()
- : numAnimationFrames(0)
- , numFramesSentToScreen(0)
- , droppedFrameCount(0)
- , totalPaintTimeInSeconds(0)
- , totalRasterizeTimeInSeconds(0)
- , totalCommitTimeInSeconds(0)
- , totalCommitCount(0)
- , numImplThreadScrolls(0)
- , numMainThreadScrolls(0)
- {
- }
+ RenderingStats();
};
-}
+} // namespace cc
#endif
« no previous file with comments | « cc/content_layer_updater.cc ('k') | cc/rendering_stats.cc » ('j') | cc/rendering_stats.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698