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

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

Issue 2534243002: [tools/perf] Enable loading metrics for common system health benchmarks (Closed)
Patch Set: Fix loading.cluster_telemetry Created 4 years 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
« no previous file with comments | « tools/perf/benchmarks/page_cycler_v2.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 from benchmarks import page_cycler_v2
8
7 from core import perf_benchmark 9 from core import perf_benchmark
10
8 from telemetry import benchmark 11 from telemetry import benchmark
9 from telemetry.timeline import chrome_trace_category_filter 12 from telemetry.timeline import chrome_trace_category_filter
10 from telemetry.timeline import chrome_trace_config 13 from telemetry.timeline import chrome_trace_config
11 from telemetry.web_perf import timeline_based_measurement 14 from telemetry.web_perf import timeline_based_measurement
12 import page_sets 15 import page_sets
13 16
14 17
15 # See tr.v.Numeric.getSummarizedScalarNumericsWithNames() 18 # See tr.v.Numeric.getSummarizedScalarNumericsWithNames()
16 # https://github.com/catapult-project/catapult/blob/master/tracing/tracing/value /numeric.html#L323 19 # https://github.com/catapult-project/catapult/blob/master/tracing/tracing/value /numeric.html#L323
17 _IGNORED_STATS_RE = re.compile(r'_(std|count|max|min|sum|pct_\d{4}(_\d+)?)$') 20 _IGNORED_STATS_RE = re.compile(r'_(std|count|max|min|sum|pct_\d{4}(_\d+)?)$')
(...skipping 12 matching lines...) Expand all
30 https://goo.gl/Jek2NL. 33 https://goo.gl/Jek2NL.
31 """ 34 """
32 35
33 def CreateTimelineBasedMeasurementOptions(self): 36 def CreateTimelineBasedMeasurementOptions(self):
34 options = timeline_based_measurement.Options( 37 options = timeline_based_measurement.Options(
35 chrome_trace_category_filter.ChromeTraceCategoryFilter()) 38 chrome_trace_category_filter.ChromeTraceCategoryFilter())
36 options.config.chrome_trace_config.category_filter.AddFilterString('rail') 39 options.config.chrome_trace_config.category_filter.AddFilterString('rail')
37 options.config.enable_battor_trace = True 40 options.config.enable_battor_trace = True
38 options.config.enable_chrome_trace = True 41 options.config.enable_chrome_trace = True
39 options.SetTimelineBasedMetrics(['clockSyncLatencyMetric', 'powerMetric']) 42 options.SetTimelineBasedMetrics(['clockSyncLatencyMetric', 'powerMetric'])
43 page_cycler_v2.AugmentOptionsForLoadingMetrics(options)
40 return options 44 return options
41 45
42 def CreateStorySet(self, options): 46 def CreateStorySet(self, options):
43 return page_sets.SystemHealthStorySet(platform=self.PLATFORM) 47 return page_sets.SystemHealthStorySet(platform=self.PLATFORM)
44 48
45 @classmethod 49 @classmethod
46 def ShouldTearDownStateAfterEachStoryRun(cls): 50 def ShouldTearDownStateAfterEachStoryRun(cls):
47 return True 51 return True
48 52
49 @classmethod 53 @classmethod
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 and load a blank page with multiprocess enabled. 185 and load a blank page with multiprocess enabled.
182 """ 186 """
183 187
184 def SetExtraBrowserOptions(self, options): 188 def SetExtraBrowserOptions(self, options):
185 options.AppendExtraBrowserArgs( 189 options.AppendExtraBrowserArgs(
186 ['--webview-sandboxed-renderer']) 190 ['--webview-sandboxed-renderer'])
187 191
188 @classmethod 192 @classmethod
189 def Name(cls): 193 def Name(cls):
190 return 'system_health.webview_startup_multiprocess' 194 return 'system_health.webview_startup_multiprocess'
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/page_cycler_v2.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698