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 core import perf_benchmark | 7 from core import perf_benchmark |
8 from telemetry import benchmark | 8 from telemetry import benchmark |
9 from telemetry.timeline import chrome_trace_category_filter | 9 from telemetry.timeline import chrome_trace_category_filter |
10 from telemetry.web_perf import timeline_based_measurement | 10 from telemetry.web_perf import timeline_based_measurement |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 return page_sets.SystemHealthStorySet(platform=self.PLATFORM) | 42 return page_sets.SystemHealthStorySet(platform=self.PLATFORM) |
43 | 43 |
44 @classmethod | 44 @classmethod |
45 def ShouldTearDownStateAfterEachStoryRun(cls): | 45 def ShouldTearDownStateAfterEachStoryRun(cls): |
46 return True | 46 return True |
47 | 47 |
48 @classmethod | 48 @classmethod |
49 def Name(cls): | 49 def Name(cls): |
50 return 'system_health.common_%s' % cls.PLATFORM | 50 return 'system_health.common_%s' % cls.PLATFORM |
51 | 51 |
52 | 52 @benchmark.Disabled('win10') # crbug.com/657665, crbug.com/653893 |
| 53 @benchmark.Disabled('mac') # crbug.com/664661 |
53 class DesktopCommonSystemHealth(_CommonSystemHealthBenchmark): | 54 class DesktopCommonSystemHealth(_CommonSystemHealthBenchmark): |
54 """Desktop Chrome Energy System Health Benchmark.""" | 55 """Desktop Chrome Energy System Health Benchmark.""" |
55 PLATFORM = 'desktop' | 56 PLATFORM = 'desktop' |
56 | 57 |
57 @classmethod | 58 @classmethod |
58 def ShouldDisable(cls, possible_browser): | 59 def ShouldDisable(cls, possible_browser): |
59 # http://crbug.com/624355 (reference builds). | 60 # http://crbug.com/624355 (reference builds). |
60 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or | 61 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or |
61 possible_browser.browser_type == 'reference') | 62 possible_browser.browser_type == 'reference') |
62 | 63 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 and load a blank page with multiprocess enabled. | 185 and load a blank page with multiprocess enabled. |
185 """ | 186 """ |
186 | 187 |
187 def SetExtraBrowserOptions(self, options): | 188 def SetExtraBrowserOptions(self, options): |
188 options.AppendExtraBrowserArgs( | 189 options.AppendExtraBrowserArgs( |
189 ['--webview-sandboxed-renderer']) | 190 ['--webview-sandboxed-renderer']) |
190 | 191 |
191 @classmethod | 192 @classmethod |
192 def Name(cls): | 193 def Name(cls): |
193 return 'system_health.webview_startup_multiprocess' | 194 return 'system_health.webview_startup_multiprocess' |
OLD | NEW |