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

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

Issue 1864173002: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/page_sets/typical_25.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/page_cycler.py
diff --git a/tools/perf/measurements/page_cycler.py b/tools/perf/measurements/page_cycler.py
index 3457aaa1b9877ce816f1c716a3dfffa43c2cee3b..28f0c3b58b099485807f503dc7436bb8b46e4b4f 100644
--- a/tools/perf/measurements/page_cycler.py
+++ b/tools/perf/measurements/page_cycler.py
@@ -28,6 +28,9 @@ from metrics import memory
from metrics import power
from metrics import speedindex
+from telemetry.timeline import tracing_config
+from telemetry.timeline import tracing_category_filter
+
class PageCycler(page_test.PageTest):
@@ -75,6 +78,11 @@ class PageCycler(page_test.PageTest):
self._cpu_metric = cpu.CpuMetric(browser)
def WillNavigateToPage(self, page, tab):
+ category_filter = tracing_category_filter.TracingCategoryFilter(
+ 'blink.user_timing')
+ config = tracing_config.TracingConfig()
+ config.SetTracingCategoryFilter(category_filter)
+ tab.browser.platform.tracing_controller.StartTracing(config)
if page.is_file:
# For legacy page cyclers which use the filesystem, do an initial
# navigate to avoid paying for a cross-renderer navigation.
@@ -122,6 +130,7 @@ class PageCycler(page_test.PageTest):
self._has_loaded_page[page.url] += 1
+ tab.browser.platform.tracing_controller.StopTracing()
self._power_metric.Stop(page, tab)
self._memory_metric.Stop(page, tab)
self._memory_metric.AddResults(tab, results)
« no previous file with comments | « no previous file | tools/perf/page_sets/typical_25.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698