Chromium Code Reviews| 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 | 5 |
| 6 from core import path_util | 6 from core import path_util |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 from page_sets import google_pages | 8 from page_sets import google_pages |
| 9 | 9 |
| 10 from benchmarks import v8_helper | 10 from benchmarks import v8_helper |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 page_set = page_sets.TodoMVCPageSet | 120 page_set = page_sets.TodoMVCPageSet |
| 121 | 121 |
| 122 def CreateTimelineBasedMeasurementOptions(self): | 122 def CreateTimelineBasedMeasurementOptions(self): |
| 123 return CreateV8TimelineBasedMeasurementOptions() | 123 return CreateV8TimelineBasedMeasurementOptions() |
| 124 | 124 |
| 125 @classmethod | 125 @classmethod |
| 126 def Name(cls): | 126 def Name(cls): |
| 127 return 'v8.todomvc' | 127 return 'v8.todomvc' |
| 128 | 128 |
| 129 @classmethod | 129 @classmethod |
| 130 def ShouldDisable(cls, possible_browser): | |
| 131 # This benchmark is flaky on Samsung Galaxy S5s. | |
| 132 # http://crbug.com/644826 | |
| 133 return possible_browser.platform.GetDeviceTypeName() == 'SM-G900H' | |
|
prasadv
2016/09/23 21:37:39
We still see v8.todomvc and v8.todomvc.reference
| |
| 134 | |
| 135 @classmethod | |
| 130 def ShouldTearDownStateAfterEachStoryRun(cls): | 136 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 131 return True | 137 return True |
| 132 | 138 |
| 133 | 139 |
| 134 # Disabled on reference builds because they don't support the new | 140 # Disabled on reference builds because they don't support the new |
| 135 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. | 141 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. |
| 136 @benchmark.Disabled('reference') | 142 @benchmark.Disabled('reference') |
| 137 class V8TodoMVCIgnition(V8TodoMVC): | 143 class V8TodoMVCIgnition(V8TodoMVC): |
| 138 """Measures V8 Execution metrics on the TodoMVC examples using ignition.""" | 144 """Measures V8 Execution metrics on the TodoMVC examples using ignition.""" |
| 139 page_set = page_sets.TodoMVCPageSet | 145 page_set = page_sets.TodoMVCPageSet |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 return True | 230 return True |
| 225 # http://crbug.com/623576 | 231 # http://crbug.com/623576 |
| 226 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or | 232 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or |
| 227 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): | 233 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): |
| 228 return True | 234 return True |
| 229 return False | 235 return False |
| 230 | 236 |
| 231 @classmethod | 237 @classmethod |
| 232 def ShouldTearDownStateAfterEachStoryRun(cls): | 238 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 233 return True | 239 return True |
| OLD | NEW |