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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 """Mobile Chrome Energy System Health Benchmark.""" | 70 """Mobile Chrome Energy System Health Benchmark.""" |
71 PLATFORM = 'mobile' | 71 PLATFORM = 'mobile' |
72 | 72 |
73 @classmethod | 73 @classmethod |
74 def ShouldDisable(cls, possible_browser): | 74 def ShouldDisable(cls, possible_browser): |
75 # http://crbug.com/612144 | 75 # http://crbug.com/612144 |
76 if (possible_browser.browser_type == 'reference' and | 76 if (possible_browser.browser_type == 'reference' and |
77 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X'): | 77 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X'): |
78 return True | 78 return True |
79 | 79 |
80 # http://crbug.com/667470 | |
81 if 'Nexus 7' in possible_browser.platform.GetDeviceTypeName(): | |
82 return True | |
83 | |
84 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' | 80 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' |
85 | 81 |
86 | 82 |
87 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): | 83 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): |
88 """Chrome Memory System Health Benchmark. | 84 """Chrome Memory System Health Benchmark. |
89 | 85 |
90 This test suite is run separately from the common one due to the high overhead | 86 This test suite is run separately from the common one due to the high overhead |
91 of memory tracing. | 87 of memory tracing. |
92 | 88 |
93 https://goo.gl/Jek2NL. | 89 https://goo.gl/Jek2NL. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 and load a blank page with multiprocess enabled. | 185 and load a blank page with multiprocess enabled. |
190 """ | 186 """ |
191 | 187 |
192 def SetExtraBrowserOptions(self, options): | 188 def SetExtraBrowserOptions(self, options): |
193 options.AppendExtraBrowserArgs( | 189 options.AppendExtraBrowserArgs( |
194 ['--webview-sandboxed-renderer']) | 190 ['--webview-sandboxed-renderer']) |
195 | 191 |
196 @classmethod | 192 @classmethod |
197 def Name(cls): | 193 def Name(cls): |
198 return 'system_health.webview_startup_multiprocess' | 194 return 'system_health.webview_startup_multiprocess' |
OLD | NEW |