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

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

Issue 208643007: Add cleanup for measurements that use tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: 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 b621ead2bad0f41f95ed9c7472c0884b5bdd10a3..80ffff9ca20a2bfb6c075c3a90d34133de9fe3ba 100644
--- a/tools/perf/measurements/rasterize_and_record.py
+++ b/tools/perf/measurements/rasterize_and_record.py
@@ -121,3 +121,7 @@ class RasterizeAndRecord(page_measurement.PageMeasurement):
max(FlattenList(stats.rasterized_pixel_counts)))
results.Add('recorded_pixels', 'pixels',
max(FlattenList(stats.recorded_pixel_counts)))
+
+ def CleanUpAfterPage(self, page, tab):
+ if tab.browser.is_tracing_running:
+ tab.browser.StopTracing()

Powered by Google App Engine
This is Rietveld 408576698