| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 @classmethod | 109 @classmethod |
| 110 def ValueCanBeAddedPredicate(cls, value, _): | 110 def ValueCanBeAddedPredicate(cls, value, _): |
| 111 return 'v8' in value.name | 111 return 'v8' in value.name |
| 112 | 112 |
| 113 @classmethod | 113 @classmethod |
| 114 def ShouldTearDownStateAfterEachStoryRun(cls): | 114 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 115 return True | 115 return True |
| 116 | 116 |
| 117 | 117 |
| 118 # Disabled on reference builds due to http://crbug.com/646925 |
| 119 @benchmark.Disabled('reference') |
| 118 class V8TodoMVC(perf_benchmark.PerfBenchmark): | 120 class V8TodoMVC(perf_benchmark.PerfBenchmark): |
| 119 """Measures V8 Execution metrics on the TodoMVC examples.""" | 121 """Measures V8 Execution metrics on the TodoMVC examples.""" |
| 120 page_set = page_sets.TodoMVCPageSet | 122 page_set = page_sets.TodoMVCPageSet |
| 121 | 123 |
| 122 def CreateTimelineBasedMeasurementOptions(self): | 124 def CreateTimelineBasedMeasurementOptions(self): |
| 123 return CreateV8TimelineBasedMeasurementOptions() | 125 return CreateV8TimelineBasedMeasurementOptions() |
| 124 | 126 |
| 125 @classmethod | 127 @classmethod |
| 126 def Name(cls): | 128 def Name(cls): |
| 127 return 'v8.todomvc' | 129 return 'v8.todomvc' |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 return True | 226 return True |
| 225 # http://crbug.com/623576 | 227 # http://crbug.com/623576 |
| 226 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or | 228 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or |
| 227 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): | 229 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): |
| 228 return True | 230 return True |
| 229 return False | 231 return False |
| 230 | 232 |
| 231 @classmethod | 233 @classmethod |
| 232 def ShouldTearDownStateAfterEachStoryRun(cls): | 234 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 233 return True | 235 return True |
| OLD | NEW |