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

Unified Diff: cc/debug/rendering_stats_instrumentation.h

Issue 363003002: Add duration estimation data to RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add CC_EXPORT Created 6 years, 5 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
« no previous file with comments | « cc/debug/rendering_stats.cc ('k') | cc/debug/rendering_stats_instrumentation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rendering_stats_instrumentation.h
diff --git a/cc/debug/rendering_stats_instrumentation.h b/cc/debug/rendering_stats_instrumentation.h
index 664013186cdeb4690d50df511ebd461fead621ad..208c1a31ee64237c9fbea02e14a453ea47f6f3d5 100644
--- a/cc/debug/rendering_stats_instrumentation.h
+++ b/cc/debug/rendering_stats_instrumentation.h
@@ -19,10 +19,10 @@ class CC_EXPORT RenderingStatsInstrumentation {
virtual ~RenderingStatsInstrumentation();
// Return copy of current main thread rendering stats.
- MainThreadRenderingStats main_thread_rendering_stats();
+ RenderingStats::MainThreadRenderingStats main_thread_rendering_stats();
// Return copy of current impl thread rendering stats.
- ImplThreadRenderingStats impl_thread_rendering_stats();
+ RenderingStats::ImplThreadRenderingStats impl_thread_rendering_stats();
// Return the accumulated, combined rendering stats.
RenderingStats GetRenderingStats();
@@ -54,15 +54,23 @@ class CC_EXPORT RenderingStatsInstrumentation {
void AddAnalysis(base::TimeDelta duration, int64 pixels);
void AddVisibleContentArea(int64 area);
void AddApproximatedVisibleContentArea(int64 area);
+ void AddDrawDuration(base::TimeDelta draw_duration,
+ base::TimeDelta draw_duration_estimate);
+ void AddBeginMainFrameToCommitDuration(
+ base::TimeDelta begin_main_frame_to_commit_duration,
+ base::TimeDelta begin_main_frame_to_commit_duration_estimate);
+ void AddCommitToActivateDuration(
+ base::TimeDelta commit_to_activate_duration,
+ base::TimeDelta commit_to_activate_duration_estimate);
protected:
RenderingStatsInstrumentation();
private:
- MainThreadRenderingStats main_thread_rendering_stats_;
- MainThreadRenderingStats main_thread_rendering_stats_accu_;
- ImplThreadRenderingStats impl_thread_rendering_stats_;
- ImplThreadRenderingStats impl_thread_rendering_stats_accu_;
+ RenderingStats::MainThreadRenderingStats main_thread_rendering_stats_;
+ RenderingStats::MainThreadRenderingStats main_thread_rendering_stats_accu_;
+ RenderingStats::ImplThreadRenderingStats impl_thread_rendering_stats_;
+ RenderingStats::ImplThreadRenderingStats impl_thread_rendering_stats_accu_;
bool record_rendering_stats_;
« no previous file with comments | « cc/debug/rendering_stats.cc ('k') | cc/debug/rendering_stats_instrumentation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698