| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return options | 110 return options |
| 111 | 111 |
| 112 @classmethod | 112 @classmethod |
| 113 def ValueCanBeAddedPredicate(cls, value, _): | 113 def ValueCanBeAddedPredicate(cls, value, _): |
| 114 return 'v8' in value.name | 114 return 'v8' in value.name |
| 115 | 115 |
| 116 @classmethod | 116 @classmethod |
| 117 def ShouldTearDownStateAfterEachStoryRun(cls): | 117 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 118 return True | 118 return True |
| 119 | 119 |
| 120 | 120 # Disabled on reference builds as they are failing across multiple Android |
| 121 # devices. see http://crbug.com/636405 |
| 122 @benchmark.Disabled('reference') |
| 121 class V8TodoMVC(perf_benchmark.PerfBenchmark): | 123 class V8TodoMVC(perf_benchmark.PerfBenchmark): |
| 122 """Measures V8 Execution metrics on the TodoMVC examples.""" | 124 """Measures V8 Execution metrics on the TodoMVC examples.""" |
| 123 page_set = page_sets.TodoMVCPageSet | 125 page_set = page_sets.TodoMVCPageSet |
| 124 | 126 |
| 125 def CreateTimelineBasedMeasurementOptions(self): | 127 def CreateTimelineBasedMeasurementOptions(self): |
| 126 return CreateV8TimelineBasedMeasurementOptions() | 128 return CreateV8TimelineBasedMeasurementOptions() |
| 127 | 129 |
| 128 @classmethod | 130 @classmethod |
| 129 def Name(cls): | 131 def Name(cls): |
| 130 return 'v8.todomvc' | 132 return 'v8.todomvc' |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 return True | 314 return True |
| 313 # http://crbug.com/623576 | 315 # http://crbug.com/623576 |
| 314 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or | 316 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or |
| 315 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): | 317 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): |
| 316 return True | 318 return True |
| 317 return False | 319 return False |
| 318 | 320 |
| 319 @classmethod | 321 @classmethod |
| 320 def ShouldTearDownStateAfterEachStoryRun(cls): | 322 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 321 return True | 323 return True |
| OLD | NEW |