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

Unified Diff: tools/perf/metrics/gpu_rendering_stats.py

Issue 25284005: cc: Add best_record_time to rendering stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 3 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 | « tools/perf/measurements/rasterize_and_record.py ('k') | tools/perf/metrics/smoothness.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/gpu_rendering_stats.py
diff --git a/tools/perf/metrics/gpu_rendering_stats.py b/tools/perf/metrics/gpu_rendering_stats.py
index 773493b381d904f75a514b67db4179dbdc5777a8..713848aa4cca5d6625ba709296329cec8a85a341 100644
--- a/tools/perf/metrics/gpu_rendering_stats.py
+++ b/tools/perf/metrics/gpu_rendering_stats.py
@@ -26,6 +26,7 @@ class GpuRenderingStats(object):
self.screen_frame_timestamps = []
self.paint_time = []
self.record_time = []
+ self.best_record_time = []
self.commit_time = []
self.commit_count = []
self.painted_pixel_count = []
@@ -104,6 +105,11 @@ class GpuRenderingStats(object):
event.args['data']['paint_time'])
self.record_time.append(
event.args['data']['record_time'])
+ # TODO(ernstm): Remove this check when CL with best_record_time has
+ # been picked up by the reference build.
+ if 'best_record_time' in event.args['data']:
+ self.best_record_time.append(
+ event.args['data']['best_record_time'])
self.commit_time.append(
event.args['data']['commit_time'])
self.commit_count.append(
« no previous file with comments | « tools/perf/measurements/rasterize_and_record.py ('k') | tools/perf/metrics/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698