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

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

Issue 2338433002: Add cpuTimeMetric to BattOr benchmark. (Closed)
Patch Set: Add back initial comment. Created 4 years, 3 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/idle_after_loading_stories.py » ('j') | 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 53ef3e4f2dae6583e9efc804cf2144e73b6363d9..08e151ab0b84d11d48fac6faf82b12960b18c001 100644
--- a/tools/perf/benchmarks/battor.py
+++ b/tools/perf/benchmarks/battor.py
@@ -14,15 +14,17 @@ from telemetry import benchmark
class _BattOrBenchmark(perf_benchmark.PerfBenchmark):
def CreateTimelineBasedMeasurementOptions(self):
- options = timeline_based_measurement.Options(
- chrome_trace_category_filter.ChromeTraceCategoryFilter())
+ category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter(
+ filter_string='toplevel')
+ options = timeline_based_measurement.Options(category_filter)
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.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric'])
+ options.SetTimelineBasedMetrics(
+ ['powerMetric', 'clockSyncLatencyMetric', 'cpuTimeMetric'])
return options
@classmethod
« no previous file with comments | « no previous file | tools/perf/page_sets/idle_after_loading_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698