OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import os | 4 import os |
5 import re | 5 import re |
6 | 6 |
7 from core import path_util | 7 from core import path_util |
8 from core import perf_benchmark | 8 from core import perf_benchmark |
9 from page_sets import google_pages | 9 from page_sets import google_pages |
10 | 10 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 # TODO(petrcermak): Remove the 'subsystem' disjunct once | 232 # TODO(petrcermak): Remove the 'subsystem' disjunct once |
233 # https://codereview.chromium.org/2018503002/ lands in Catapult and rolls | 233 # https://codereview.chromium.org/2018503002/ lands in Catapult and rolls |
234 # into Chromium. | 234 # into Chromium. |
235 if (('subsystem' in value.name or 'reported_by_chrome' in value.name) and | 235 if (('subsystem' in value.name or 'reported_by_chrome' in value.name) and |
236 'v8' not in value.name): | 236 'v8' not in value.name): |
237 return False # Drop non-V8 values reported by Chrome. | 237 return False # Drop non-V8 values reported by Chrome. |
238 # Keep dump counts and average+max of process counts, vmstats and v8. | 238 # Keep dump counts and average+max of process counts, vmstats and v8. |
239 return not cls._IGNORED_V8_STATS_RE.search(value.name) | 239 return not cls._IGNORED_V8_STATS_RE.search(value.name) |
240 | 240 |
241 | 241 |
242 @benchmark.Disabled('reference') | 242 @benchmark.Disabled('reference', |
| 243 'mac') # crbug.com/630854 |
243 class V8MobileCodeSizeIgnition(_V8MemoryAndCodeSizeBenchmark): | 244 class V8MobileCodeSizeIgnition(_V8MemoryAndCodeSizeBenchmark): |
244 """Measures V8 heap and code size with ignition enabled on mobile web pages. | 245 """Measures V8 heap and code size with ignition enabled on mobile web pages. |
245 | 246 |
246 http://www.chromium.org/developers/design-documents/rendering-benchmarks | 247 http://www.chromium.org/developers/design-documents/rendering-benchmarks |
247 """ | 248 """ |
248 | 249 |
249 def SetExtraBrowserOptions(self, options): | 250 def SetExtraBrowserOptions(self, options): |
250 super(V8MobileCodeSizeIgnition, self).SetExtraBrowserOptions(options) | 251 super(V8MobileCodeSizeIgnition, self).SetExtraBrowserOptions(options) |
251 v8_helper.EnableIgnition(options) | 252 v8_helper.EnableIgnition(options) |
252 | 253 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 return True | 298 return True |
298 # http://crbug.com/623576 | 299 # http://crbug.com/623576 |
299 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or | 300 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or |
300 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): | 301 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): |
301 return True | 302 return True |
302 return False | 303 return False |
303 | 304 |
304 @classmethod | 305 @classmethod |
305 def ShouldTearDownStateAfterEachStoryRun(cls): | 306 def ShouldTearDownStateAfterEachStoryRun(cls): |
306 return True | 307 return True |
OLD | NEW |