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 @benchmark.Disabled('win10') # crbug.com/657665, crbug.com/653893 | 52 |
53 @benchmark.Disabled('mac') # crbug.com/664661 | |
54 class DesktopCommonSystemHealth(_CommonSystemHealthBenchmark): | 53 class DesktopCommonSystemHealth(_CommonSystemHealthBenchmark): |
55 """Desktop Chrome Energy System Health Benchmark.""" | 54 """Desktop Chrome Energy System Health Benchmark.""" |
56 PLATFORM = 'desktop' | 55 PLATFORM = 'desktop' |
57 | 56 |
58 @classmethod | 57 @classmethod |
59 def ShouldDisable(cls, possible_browser): | 58 def ShouldDisable(cls, possible_browser): |
60 # http://crbug.com/624355 (reference builds). | 59 # http://crbug.com/624355 (reference builds). |
61 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or | 60 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or |
62 possible_browser.browser_type == 'reference') | 61 possible_browser.browser_type == 'reference') |
63 | 62 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 and load a blank page with multiprocess enabled. | 184 and load a blank page with multiprocess enabled. |
186 """ | 185 """ |
187 | 186 |
188 def SetExtraBrowserOptions(self, options): | 187 def SetExtraBrowserOptions(self, options): |
189 options.AppendExtraBrowserArgs( | 188 options.AppendExtraBrowserArgs( |
190 ['--webview-sandboxed-renderer']) | 189 ['--webview-sandboxed-renderer']) |
191 | 190 |
192 @classmethod | 191 @classmethod |
193 def Name(cls): | 192 def Name(cls): |
194 return 'system_health.webview_startup_multiprocess' | 193 return 'system_health.webview_startup_multiprocess' |
OLD | NEW |