Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: tools/perf/benchmarks/system_health.py

Issue 2670363002: [system-health] Re-enable memory_mobile.reference on Nexus 5X. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or 65 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or
66 possible_browser.browser_type == 'reference') 66 possible_browser.browser_type == 'reference')
67 67
68 68
69 class MobileCommonSystemHealth(_CommonSystemHealthBenchmark): 69 class MobileCommonSystemHealth(_CommonSystemHealthBenchmark):
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
76 if (possible_browser.browser_type == 'reference' and
77 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X'):
78 return True
79
80 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' 75 return possible_browser.platform.GetDeviceTypeName() == 'Desktop'
81 76
82 77
83 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): 78 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark):
84 """Chrome Memory System Health Benchmark. 79 """Chrome Memory System Health Benchmark.
85 80
86 This test suite is run separately from the common one due to the high overhead 81 This test suite is run separately from the common one due to the high overhead
87 of memory tracing. 82 of memory tracing.
88 83
89 https://goo.gl/Jek2NL. 84 https://goo.gl/Jek2NL.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 # http://crbug.com/624355 (reference builds). 124 # http://crbug.com/624355 (reference builds).
130 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or 125 return (possible_browser.platform.GetDeviceTypeName() != 'Desktop' or
131 possible_browser.browser_type == 'reference') 126 possible_browser.browser_type == 'reference')
132 127
133 128
134 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): 129 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark):
135 """Mobile Chrome Memory System Health Benchmark.""" 130 """Mobile Chrome Memory System Health Benchmark."""
136 PLATFORM = 'mobile' 131 PLATFORM = 'mobile'
137 132
138 @classmethod 133 @classmethod
139 def ShouldDisable(cls, possible_browser): 134 def ShouldDisable(cls, possible_browser):
nednguyen 2017/02/03 16:51:01 Can you update this benchmark class to just use "@
kraynov 2017/02/03 17:03:12 Done.
140 # http://crbug.com/612144
141 if (possible_browser.browser_type == 'reference' and
142 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X'):
143 return True
144
145 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' 135 return possible_browser.platform.GetDeviceTypeName() == 'Desktop'
146 136
147 def SetExtraBrowserOptions(self, options): 137 def SetExtraBrowserOptions(self, options):
148 # Just before we measure memory we flush the system caches 138 # Just before we measure memory we flush the system caches
149 # unfortunately this doesn't immediately take effect, instead 139 # unfortunately this doesn't immediately take effect, instead
150 # the next story run is effected. Due to this the first story run 140 # the next story run is effected. Due to this the first story run
151 # has anomalous results. This option causes us to flush caches 141 # has anomalous results. This option causes us to flush caches
152 # each time before Chrome starts so we effect even the first story 142 # each time before Chrome starts so we effect even the first story
153 # - avoiding the bug. 143 # - avoiding the bug.
154 options.clear_sytem_cache_for_browser_and_profile_on_start = True 144 options.clear_sytem_cache_for_browser_and_profile_on_start = True
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 and load a blank page with multiprocess enabled. 184 and load a blank page with multiprocess enabled.
195 """ 185 """
196 186
197 def SetExtraBrowserOptions(self, options): 187 def SetExtraBrowserOptions(self, options):
198 options.AppendExtraBrowserArgs( 188 options.AppendExtraBrowserArgs(
199 ['--webview-sandboxed-renderer']) 189 ['--webview-sandboxed-renderer'])
200 190
201 @classmethod 191 @classmethod
202 def Name(cls): 192 def Name(cls):
203 return 'system_health.webview_startup_multiprocess' 193 return 'system_health.webview_startup_multiprocess'
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698