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') | |
120 class V8TodoMVC(perf_benchmark.PerfBenchmark): | 118 class V8TodoMVC(perf_benchmark.PerfBenchmark): |
121 """Measures V8 Execution metrics on the TodoMVC examples.""" | 119 """Measures V8 Execution metrics on the TodoMVC examples.""" |
122 page_set = page_sets.TodoMVCPageSet | 120 page_set = page_sets.TodoMVCPageSet |
123 | 121 |
124 def CreateTimelineBasedMeasurementOptions(self): | 122 def CreateTimelineBasedMeasurementOptions(self): |
125 return CreateV8TimelineBasedMeasurementOptions() | 123 return CreateV8TimelineBasedMeasurementOptions() |
126 | 124 |
127 @classmethod | 125 @classmethod |
128 def Name(cls): | 126 def Name(cls): |
129 return 'v8.todomvc' | 127 return 'v8.todomvc' |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 return True | 224 return True |
227 # http://crbug.com/623576 | 225 # http://crbug.com/623576 |
228 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or | 226 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or |
229 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): | 227 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): |
230 return True | 228 return True |
231 return False | 229 return False |
232 | 230 |
233 @classmethod | 231 @classmethod |
234 def ShouldTearDownStateAfterEachStoryRun(cls): | 232 def ShouldTearDownStateAfterEachStoryRun(cls): |
235 return True | 233 return True |
OLD | NEW |