summaryrefslogtreecommitdiffstats
path: root/cc/debug/rendering_stats_instrumentation.h
diff options
context:
space:
mode:
authorernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-24 03:35:35 +0000
committerernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-24 03:35:35 +0000
commitc1e6cc066a4ef4428943932cbd81ece6384152c9 (patch)
tree37fc4955a0b9b64caf3af81f6c54f734c15ad317 /cc/debug/rendering_stats_instrumentation.h
parent6b2dc76642fe5ece08e5028ab7f7a40e1cf2cc39 (diff)
downloadchromium_src-c1e6cc066a4ef4428943932cbd81ece6384152c9.zip
chromium_src-c1e6cc066a4ef4428943932cbd81ece6384152c9.tar.gz
chromium_src-c1e6cc066a4ef4428943932cbd81ece6384152c9.tar.bz2
telemetry: Partially switch smoothnes measurement to timeline.
- Switched main thread and impl thread stats collection to timeline. - Made SmoothnessMetrics work with stats lists - Issue trace events for rendering stats in a separate function - Issue trace events for rendering stats from SingleThreadProxy and RenderWidget - Switch RenderWidget from RenderingStats to RenderingStastInstrumentation - Added missing image_gathering_time output to MainThreadRenderingStats - Updated smoothness_unittest to use trace events R=tonyg@chromium.org BUG=264308,266095 Review URL: https://chromiumcodereview.appspot.com/22870018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/rendering_stats_instrumentation.h')
-rw-r--r--cc/debug/rendering_stats_instrumentation.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/cc/debug/rendering_stats_instrumentation.h b/cc/debug/rendering_stats_instrumentation.h
index a7f9b308..5f74f9e 100644
--- a/cc/debug/rendering_stats_instrumentation.h
+++ b/cc/debug/rendering_stats_instrumentation.h
@@ -30,12 +30,21 @@ class CC_EXPORT RenderingStatsInstrumentation {
RenderingStats GetRenderingStats();
// Add current main thread rendering stats to accumulator and
- // clear current stats
+ // clear current stats.
void AccumulateAndClearMainThreadStats();
// Add current impl thread rendering stats to accumulator and
- // clear current stats
+ // clear current stats.
void AccumulateAndClearImplThreadStats();
+ // Issue trace event for current main thread rendering stats.
+ void IssueTraceEventForMainThreadStats() {
+ main_stats_.IssueTraceEvent();
+ }
+ // Issue trace event for current impl thread rendering stats.
+ void IssueTraceEventForImplThreadStats() {
+ impl_stats_.IssueTraceEvent();
+ }
+
// Read and write access to the record_rendering_stats_ flag is not locked to
// improve performance. The flag is commonly turned off and hardly changes
// it's value during runtime.
@@ -49,7 +58,7 @@ class CC_EXPORT RenderingStatsInstrumentation {
base::TimeDelta EndRecording(base::TimeTicks start_time) const;
void IncrementAnimationFrameCount();
- void IncrementScreenFrameCount(int64 count);
+ void IncrementScreenFrameCount(int64 count, bool main_thread);
void IncrementDroppedFrameCount(int64 count);
void AddCommit(base::TimeDelta duration);