Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: tools/perf/benchmarks/v8.py

Issue 1857613002: Upgrade v8.todomvc{,-ignition} to TBMv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 shlex 5 import shlex
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 class V8TodoMVC(perf_benchmark.PerfBenchmark): 141 class V8TodoMVC(perf_benchmark.PerfBenchmark):
142 """Measures V8 Execution metrics on the TodoMVC examples.""" 142 """Measures V8 Execution metrics on the TodoMVC examples."""
143 page_set = page_sets.TodoMVCPageSet 143 page_set = page_sets.TodoMVCPageSet
144 144
145 def CreateTimelineBasedMeasurementOptions(self): 145 def CreateTimelineBasedMeasurementOptions(self):
146 category_filter = tracing_category_filter.CreateMinimalOverheadFilter() 146 category_filter = tracing_category_filter.CreateMinimalOverheadFilter()
147 category_filter.AddIncludedCategory('v8') 147 category_filter.AddIncludedCategory('v8')
148 category_filter.AddIncludedCategory('blink.console') 148 category_filter.AddIncludedCategory('blink.console')
149 options = timeline_based_measurement.Options(category_filter) 149 options = timeline_based_measurement.Options(category_filter)
150 options.SetLegacyTimelineBasedMetrics([v8_execution.V8ExecutionMetric()]) 150 options.SetTimelineBasedMetric('executionMetric')
151 return options 151 return options
152 152
153 @classmethod 153 @classmethod
154 def Name(cls): 154 def Name(cls):
155 return 'v8.todomvc' 155 return 'v8.todomvc'
156 156
157 @classmethod 157 @classmethod
158 def ShouldTearDownStateAfterEachStoryRun(cls): 158 def ShouldTearDownStateAfterEachStoryRun(cls):
159 return True 159 return True
160 160
161 161
162 @benchmark.Disabled('reference') # https://crbug.com/598096 162 @benchmark.Disabled('reference') # https://crbug.com/598096
163 class V8TodoMVCIgnition(perf_benchmark.PerfBenchmark): 163 class V8TodoMVCIgnition(perf_benchmark.PerfBenchmark):
164 """Measures V8 Execution metrics on the TodoMVC examples using ignition.""" 164 """Measures V8 Execution metrics on the TodoMVC examples using ignition."""
165 page_set = page_sets.TodoMVCPageSet 165 page_set = page_sets.TodoMVCPageSet
166 166
167 def SetExtraBrowserOptions(self, options): 167 def SetExtraBrowserOptions(self, options):
168 EnableIgnition(options) 168 EnableIgnition(options)
169 169
170 def CreateTimelineBasedMeasurementOptions(self): 170 def CreateTimelineBasedMeasurementOptions(self):
171 category_filter = tracing_category_filter.CreateMinimalOverheadFilter() 171 category_filter = tracing_category_filter.CreateMinimalOverheadFilter()
172 category_filter.AddIncludedCategory('v8') 172 category_filter.AddIncludedCategory('v8')
173 category_filter.AddIncludedCategory('blink.console') 173 category_filter.AddIncludedCategory('blink.console')
174 options = timeline_based_measurement.Options(category_filter) 174 options = timeline_based_measurement.Options(category_filter)
175 options.SetLegacyTimelineBasedMetrics([v8_execution.V8ExecutionMetric()]) 175 options.SetTimelineBasedMetric('executionMetric')
176 return options 176 return options
177 177
178 @classmethod 178 @classmethod
179 def Name(cls): 179 def Name(cls):
180 return 'v8.todomvc-ignition' 180 return 'v8.todomvc-ignition'
181 181
182 @classmethod 182 @classmethod
183 def ShouldTearDownStateAfterEachStoryRun(cls): 183 def ShouldTearDownStateAfterEachStoryRun(cls):
184 return True 184 return True
185 185
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 def Name(cls): 261 def Name(cls):
262 return 'v8.google' 262 return 'v8.google'
263 263
264 @classmethod 264 @classmethod
265 def ShouldDisable(cls, possible_browser): 265 def ShouldDisable(cls, possible_browser):
266 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 266 return cls.IsSvelte(possible_browser) # http://crbug.com/596556
267 267
268 @classmethod 268 @classmethod
269 def ShouldTearDownStateAfterEachStoryRun(cls): 269 def ShouldTearDownStateAfterEachStoryRun(cls):
270 return True 270 return True
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698