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

Unified Diff: tools/perf/benchmarks/system_health.py

Issue 1741843002: SystemHealth TBMv2 benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable s5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/system_health.py
diff --git a/tools/perf/benchmarks/system_health.py b/tools/perf/benchmarks/system_health.py
new file mode 100644
index 0000000000000000000000000000000000000000..e31cd93738b40318d38a962f102bbb70931dfc74
--- /dev/null
+++ b/tools/perf/benchmarks/system_health.py
@@ -0,0 +1,46 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from core import perf_benchmark
+from telemetry.timeline import tracing_category_filter
+from telemetry.web_perf import timeline_based_measurement
+import page_sets
+
+class _SystemHealthBenchmark(perf_benchmark.PerfBenchmark):
+ TRACING_CATEGORIES = [
+ 'benchmark',
+ 'navigation',
+ 'blink.user_timing',
+ ]
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ options = timeline_based_measurement.Options()
+ options.config.SetTracingCategoryFilter(
+ tracing_category_filter.TracingCategoryFilter(','.join(
+ self.TRACING_CATEGORIES)))
+ options.SetTimelineBasedMetric('SystemHealthMetrics')
+ return options
+
+ @classmethod
+ def ShouldDisable(cls, browser):
+ # http://crbug.com/600463
+ galaxy_s5_type_name = 'SM-G900H'
+ return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name
+
+
+class SystemHealthTop25(_SystemHealthBenchmark):
+ page_set = page_sets.Top25PageSet
+
+ @classmethod
+ def Name(cls):
+ return 'system_health.top25'
+
+
+class SystemHealthKeyMobileSites(_SystemHealthBenchmark):
+ page_set = page_sets.KeyMobileSitesPageSet
+
+ @classmethod
+ def Name(cls):
+ return 'system_health.key_mobile_sites'
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698