summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorzhenw <zhenw@chromium.org>2016-03-15 11:15:48 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-15 18:17:51 +0000
commiteddced864b0b9381cc5ae464c01b5c7ccc97ab00 (patch)
treef683e49c1363f9f3defaccccb6f01def913e4a5c /tools/perf
parent5ddf1d21d81d450ec9007f14c5f14bfd5657ce51 (diff)
downloadchromium_src-eddced864b0b9381cc5ae464c01b5c7ccc97ab00.zip
chromium_src-eddced864b0b9381cc5ae464c01b5c7ccc97ab00.tar.gz
chromium_src-eddced864b0b9381cc5ae464c01b5c7ccc97ab00.tar.bz2
Add tracing benchmark
This CL adds benchmark for Chrome tracing system. It includes several typical trace settings. More scenarios can be added if needed. Benchmark run time on local workstation (linux): - tracing.tracing_debug_overhead with Top10PageSet: 3m33s Design doc: https://goo.gl/VYIBqT BUG=catapult:#2078 CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:android_s5_perf_cq;tryserver.chromium.perf:winx64_10_perf_cq;tryserver.chromium.perf:mac_retina_perf_cq;tryserver.chromium.perf:linux_perf_cq Review URL: https://codereview.chromium.org/1776583003 Cr-Commit-Position: refs/heads/master@{#381255}
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/benchmarks/tracing.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/perf/benchmarks/tracing.py b/tools/perf/benchmarks/tracing.py
new file mode 100644
index 0000000..b0b7223
--- /dev/null
+++ b/tools/perf/benchmarks/tracing.py
@@ -0,0 +1,24 @@
+# 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.web_perf import timeline_based_measurement
+
+import page_sets
+
+
+class TracingWithDebugOverhead(perf_benchmark.PerfBenchmark):
+
+ page_set = page_sets.Top10PageSet
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ options = timeline_based_measurement.Options(
+ timeline_based_measurement.DEBUG_OVERHEAD_LEVEL)
+ options.SetTimelineBasedMetric('system_health/tracing_metric.html')
+ return options
+
+ @classmethod
+ def Name(cls):
+ return 'tracing.tracing_with_debug_overhead'