OLD | NEW |
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 | 7 from benchmarks import page_cycler_v2 |
8 | 8 |
9 from core import perf_benchmark | 9 from core import perf_benchmark |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 https://goo.gl/Jek2NL. | 33 https://goo.gl/Jek2NL. |
34 """ | 34 """ |
35 | 35 |
36 def CreateTimelineBasedMeasurementOptions(self): | 36 def CreateTimelineBasedMeasurementOptions(self): |
37 options = timeline_based_measurement.Options( | 37 options = timeline_based_measurement.Options( |
38 chrome_trace_category_filter.ChromeTraceCategoryFilter()) | 38 chrome_trace_category_filter.ChromeTraceCategoryFilter()) |
39 options.config.chrome_trace_config.category_filter.AddFilterString('rail') | 39 options.config.chrome_trace_config.category_filter.AddFilterString('rail') |
40 options.config.enable_battor_trace = True | 40 options.config.enable_battor_trace = True |
41 options.config.enable_chrome_trace = True | 41 options.config.enable_chrome_trace = True |
42 options.SetTimelineBasedMetrics(['clockSyncLatencyMetric', 'powerMetric']) | 42 options.SetTimelineBasedMetrics([ |
| 43 'clockSyncLatencyMetric', |
| 44 'powerMetric', |
| 45 'tracingMetric' |
| 46 ]) |
43 page_cycler_v2.AugmentOptionsForLoadingMetrics(options) | 47 page_cycler_v2.AugmentOptionsForLoadingMetrics(options) |
44 return options | 48 return options |
45 | 49 |
46 def CreateStorySet(self, options): | 50 def CreateStorySet(self, options): |
47 return page_sets.SystemHealthStorySet(platform=self.PLATFORM) | 51 return page_sets.SystemHealthStorySet(platform=self.PLATFORM) |
48 | 52 |
49 @classmethod | 53 @classmethod |
50 def ShouldTearDownStateAfterEachStoryRun(cls): | 54 def ShouldTearDownStateAfterEachStoryRun(cls): |
51 return True | 55 return True |
52 | 56 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 and load a blank page with multiprocess enabled. | 176 and load a blank page with multiprocess enabled. |
173 """ | 177 """ |
174 | 178 |
175 def SetExtraBrowserOptions(self, options): | 179 def SetExtraBrowserOptions(self, options): |
176 options.AppendExtraBrowserArgs( | 180 options.AppendExtraBrowserArgs( |
177 ['--webview-sandboxed-renderer']) | 181 ['--webview-sandboxed-renderer']) |
178 | 182 |
179 @classmethod | 183 @classmethod |
180 def Name(cls): | 184 def Name(cls): |
181 return 'system_health.webview_startup_multiprocess' | 185 return 'system_health.webview_startup_multiprocess' |
OLD | NEW |