| 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.timeline import chrome_trace_config | 10 from telemetry.timeline import chrome_trace_config |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 def Name(cls): | 109 def Name(cls): |
| 110 return 'system_health.memory_%s' % cls.PLATFORM | 110 return 'system_health.memory_%s' % cls.PLATFORM |
| 111 | 111 |
| 112 @classmethod | 112 @classmethod |
| 113 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 113 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 114 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard | 114 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard |
| 115 # is able to cope with the data load generated by TBMv2 metrics. | 115 # is able to cope with the data load generated by TBMv2 metrics. |
| 116 return not _IGNORED_STATS_RE.search(value.name) | 116 return not _IGNORED_STATS_RE.search(value.name) |
| 117 | 117 |
| 118 | 118 |
| 119 @benchmark.Disabled('win10') # http://crbug.com/667941 |
| 119 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): | 120 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): |
| 120 """Desktop Chrome Memory System Health Benchmark.""" | 121 """Desktop Chrome Memory System Health Benchmark.""" |
| 121 PLATFORM = 'desktop' | 122 PLATFORM = 'desktop' |
| 122 | 123 |
| 123 @classmethod | 124 @classmethod |
| 124 def ShouldDisable(cls, possible_browser): | 125 def ShouldDisable(cls, possible_browser): |
| 125 # http://crbug.com/624355 (reference builds). | 126 # http://crbug.com/624355 (reference builds). |
| 126 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or | 127 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or |
| 127 possible_browser.browser_type == 'reference') | 128 possible_browser.browser_type == 'reference') |
| 128 | 129 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 and load a blank page with multiprocess enabled. | 182 and load a blank page with multiprocess enabled. |
| 182 """ | 183 """ |
| 183 | 184 |
| 184 def SetExtraBrowserOptions(self, options): | 185 def SetExtraBrowserOptions(self, options): |
| 185 options.AppendExtraBrowserArgs( | 186 options.AppendExtraBrowserArgs( |
| 186 ['--webview-sandboxed-renderer']) | 187 ['--webview-sandboxed-renderer']) |
| 187 | 188 |
| 188 @classmethod | 189 @classmethod |
| 189 def Name(cls): | 190 def Name(cls): |
| 190 return 'system_health.webview_startup_multiprocess' | 191 return 'system_health.webview_startup_multiprocess' |
| OLD | NEW |