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

Side by Side Diff: tools/perf/benchmarks/idle_platform.py

Issue 2744273003: [Telemetry] Add benchmark that doesn't launch chrome and collects platform data. (Closed)
Patch Set: Disable cpu tracing and rebase and run generate_perf_json Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
charliea (OOO until 10-5) 2017/03/20 14:20:25 2017
nednguyen 2017/03/20 16:54:35 this should be move to power.py file
rnephew (Reviews Here) 2017/03/30 20:58:23 Done.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from core import perf_benchmark
6
7 from telemetry.timeline import chrome_trace_category_filter
8 from telemetry.web_perf import timeline_based_measurement
9 import page_sets
10
11
12 class IdlePlatformBenchmark(perf_benchmark.PerfBenchmark):
13 """Idle platform benchmark.
14
15 This benchmark just starts up tracing agents and lets the platform sit idle.
charliea (OOO until 10-5) 2017/03/20 14:20:25 Please include information about _why_ we want thi
rnephew (Reviews Here) 2017/03/30 20:58:23 Done.
16 """
17 def CreateTimelineBasedMeasurementOptions(self):
18 options = timeline_based_measurement.Options(
19 chrome_trace_category_filter.ChromeTraceCategoryFilter())
20 options.config.chrome_trace_config.category_filter.AddFilterString('rail')
nednguyen 2017/03/20 16:54:35 we don't enable Chrome trace, so there is no use i
rnephew (Reviews Here) 2017/03/30 20:58:23 Done.
21 options.config.enable_battor_trace = True
22 options.config.enable_cpu_trace = False
charliea (OOO until 10-5) 2017/03/20 14:20:25 Instead of options.config.enable_cpu_trace = False
rnephew (Reviews Here) 2017/03/30 20:58:23 https://github.com/catapult-project/catapult/issue
23 options.config.enable_chrome_trace = False
charliea (OOO until 10-5) 2017/03/20 14:20:25 nit: no need to respecify the default
rnephew (Reviews Here) 2017/03/30 20:58:23 It actually is required. It was failing to clock s
24 # Atrace tracing agent autodetects if its android and only runs if it is.
25 options.config.enable_atrace_trace = True
26 options.SetTimelineBasedMetrics([
27 'clockSyncLatencyMetric',
28 'powerMetric',
29 'tracingMetric'
30 ])
31 return options
32
33 def CreateStorySet(self, options):
34 return page_sets.IdlePlatformPageSet()
35
36 @classmethod
37 def ShouldTearDownStateAfterEachStoryRun(cls):
38 return True
39
40 @classmethod
41 def Name(cls):
42 return 'idle_platform'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698