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

Unified Diff: tools/perf/measurements/rasterize_and_record.py

Issue 23902027: telemetry: Make trace profiler work with trace-based benchmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add subset test for category filters. 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 | « no previous file | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/rasterize_and_record.py
diff --git a/tools/perf/measurements/rasterize_and_record.py b/tools/perf/measurements/rasterize_and_record.py
index 4ed5a0942e0808f28f9c0fc9cac36980f07bc3a7..b5bc61331707547734e5904b1ee3de957b358ca7 100644
--- a/tools/perf/measurements/rasterize_and_record.py
+++ b/tools/perf/measurements/rasterize_and_record.py
@@ -148,7 +148,7 @@ class RasterizeAndRecord(page_measurement.PageMeasurement):
});
""")
- tab.browser.StartTracing('webkit,webkit.console,benchmark', 60)
+ tab.browser.StartTracing('webkit.console,benchmark', 60)
self._metrics.Start()
tab.ExecuteJavaScript("""
@@ -166,10 +166,9 @@ class RasterizeAndRecord(page_measurement.PageMeasurement):
time.sleep(float(self.options.stop_wait_time))
tab.ExecuteJavaScript('console.timeEnd("measureNextFrame")')
- tab.browser.StopTracing()
self._metrics.Stop()
+ timeline = tab.browser.StopTracing().AsTimelineModel()
- timeline = tab.browser.GetTraceResultAndReset().AsTimelineModel()
collector = StatsCollector(timeline)
collector.GatherRenderingStats()
« no previous file with comments | « no previous file | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698