From eddced864b0b9381cc5ae464c01b5c7ccc97ab00 Mon Sep 17 00:00:00 2001 From: zhenw Date: Tue, 15 Mar 2016 11:15:48 -0700 Subject: 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} --- tools/perf/benchmarks/tracing.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/perf/benchmarks/tracing.py (limited to 'tools/perf') 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' -- cgit v1.1