| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 112 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 113 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard | 113 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard |
| 114 # is able to cope with the data load generated by TBMv2 metrics. | 114 # is able to cope with the data load generated by TBMv2 metrics. |
| 115 return not _IGNORED_STATS_RE.search(value.name) | 115 return not _IGNORED_STATS_RE.search(value.name) |
| 116 | 116 |
| 117 | 117 |
| 118 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): | 118 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): |
| 119 """Desktop Chrome Memory System Health Benchmark.""" | 119 """Desktop Chrome Memory System Health Benchmark.""" |
| 120 PLATFORM = 'desktop' | 120 PLATFORM = 'desktop' |
| 121 | 121 |
| 122 def SetExtraBrowserOptions(self, options): |
| 123 options.AppendExtraBrowserArgs([ |
| 124 '--enable-stats-collection-bindings' |
| 125 ]) |
| 126 |
| 122 @classmethod | 127 @classmethod |
| 123 def ShouldDisable(cls, possible_browser): | 128 def ShouldDisable(cls, possible_browser): |
| 124 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' | 129 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' |
| 125 | 130 |
| 126 | 131 |
| 127 @benchmark.Enabled('android') | 132 @benchmark.Enabled('android') |
| 128 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): | 133 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): |
| 129 """Mobile Chrome Memory System Health Benchmark.""" | 134 """Mobile Chrome Memory System Health Benchmark.""" |
| 130 PLATFORM = 'mobile' | 135 PLATFORM = 'mobile' |
| 131 | 136 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 and load a blank page with multiprocess enabled. | 184 and load a blank page with multiprocess enabled. |
| 180 """ | 185 """ |
| 181 | 186 |
| 182 def SetExtraBrowserOptions(self, options): | 187 def SetExtraBrowserOptions(self, options): |
| 183 options.AppendExtraBrowserArgs( | 188 options.AppendExtraBrowserArgs( |
| 184 ['--webview-sandboxed-renderer']) | 189 ['--webview-sandboxed-renderer']) |
| 185 | 190 |
| 186 @classmethod | 191 @classmethod |
| 187 def Name(cls): | 192 def Name(cls): |
| 188 return 'system_health.webview_startup_multiprocess' | 193 return 'system_health.webview_startup_multiprocess' |
| OLD | NEW |