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

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

Issue 2265083002: [Telemetry] Change default BattOr benchmark chrome tracing categories to be rail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get rid of filter override Created 4 years, 4 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/battor.py
diff --git a/tools/perf/benchmarks/battor.py b/tools/perf/benchmarks/battor.py
index 2cbc14ecfae92af0266f99c48e6944e92fb115e2..f1713be955ffde3695e00a0aff224eab4b7f4e9f 100644
--- a/tools/perf/benchmarks/battor.py
+++ b/tools/perf/benchmarks/battor.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
from core import perf_benchmark
+from telemetry.timeline import chrome_trace_category_filter
from telemetry.web_perf import timeline_based_measurement
import page_sets
from telemetry import benchmark
@@ -13,13 +14,14 @@ from telemetry import benchmark
class _BattOrBenchmark(perf_benchmark.PerfBenchmark):
def CreateTimelineBasedMeasurementOptions(self):
- options = timeline_based_measurement.Options()
+ options = timeline_based_measurement.Options(
+ chrome_trace_category_filter.ChromeTraceCategoryFilter())
+ options.config.chrome_trace_config.category_filter.AddFilterString('rail')
options.config.enable_battor_trace = True
options.config.enable_chrome_trace = True
options.config.enable_atrace_trace = True
options.config.atrace_config.categories = ['sched']
options.config.enable_cpu_trace = True
- options.config.chrome_trace_config.SetDefaultOverheadFilter()
options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric'])
return options
« 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