| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 248 |
| 249 def SetExtraBrowserOptions(self, options): | 249 def SetExtraBrowserOptions(self, options): |
| 250 super(V8MobileCodeSizeIgnition, self).SetExtraBrowserOptions(options) | 250 super(V8MobileCodeSizeIgnition, self).SetExtraBrowserOptions(options) |
| 251 v8_helper.EnableIgnition(options) | 251 v8_helper.EnableIgnition(options) |
| 252 | 252 |
| 253 @classmethod | 253 @classmethod |
| 254 def Name(cls): | 254 def Name(cls): |
| 255 return 'top_10_mobile_memory_ignition' | 255 return 'top_10_mobile_memory_ignition' |
| 256 | 256 |
| 257 | 257 |
| 258 @benchmark.Disabled('reference') | 258 @benchmark.Disabled('reference', |
| 259 'mac') # crbug.com/630854 |
| 259 class V8MobileCodeSize(_V8MemoryAndCodeSizeBenchmark): | 260 class V8MobileCodeSize(_V8MemoryAndCodeSizeBenchmark): |
| 260 """Measures V8 heap and code size on mobile web pages. | 261 """Measures V8 heap and code size on mobile web pages. |
| 261 | 262 |
| 262 http://www.chromium.org/developers/design-documents/rendering-benchmarks | 263 http://www.chromium.org/developers/design-documents/rendering-benchmarks |
| 263 """ | 264 """ |
| 264 | 265 |
| 265 @classmethod | 266 @classmethod |
| 266 def Name(cls): | 267 def Name(cls): |
| 267 return 'top_10_mobile_memory' | 268 return 'top_10_mobile_memory' |
| 268 | 269 |
| (...skipping 28 matching lines...) Expand all 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 |