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

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

Issue 1782033002: [telemetry] Add page load interaction to V8.todomvc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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 | tools/perf/page_sets/todomvc.py » ('j') | 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 shlex 4 import shlex
5 5
6 from core import perf_benchmark 6 from core import perf_benchmark
7 7
8 from measurements import v8_detached_context_age_in_gc 8 from measurements import v8_detached_context_age_in_gc
9 from measurements import v8_gc_times 9 from measurements import v8_gc_times
10 import page_sets 10 import page_sets
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 @classmethod 118 @classmethod
119 def ShouldTearDownStateAfterEachStoryRun(cls): 119 def ShouldTearDownStateAfterEachStoryRun(cls):
120 return True 120 return True
121 121
122 122
123 class V8TodoMVC(perf_benchmark.PerfBenchmark): 123 class V8TodoMVC(perf_benchmark.PerfBenchmark):
124 """Measures V8 Execution metrics on the TodoMVC examples.""" 124 """Measures V8 Execution metrics on the TodoMVC examples."""
125 page_set = page_sets.TodoMVCPageSet 125 page_set = page_sets.TodoMVCPageSet
126 126
127 def CreateTimelineBasedMeasurementOptions(self): 127 def CreateTimelineBasedMeasurementOptions(self):
128 category_filter = tracing_category_filter.TracingCategoryFilter('v8') 128 category_filter = tracing_category_filter.CreateMinimalOverheadFilter()
129 category_filter.AddIncludedCategory('v8')
130 category_filter.AddIncludedCategory('blink.console')
129 options = timeline_based_measurement.Options(category_filter) 131 options = timeline_based_measurement.Options(category_filter)
130 options.SetLegacyTimelineBasedMetrics([v8_execution.V8ExecutionMetric()]) 132 options.SetLegacyTimelineBasedMetrics([v8_execution.V8ExecutionMetric()])
131 return options 133 return options
132 134
133 @classmethod 135 @classmethod
134 def Name(cls): 136 def Name(cls):
135 return 'v8.todomvc' 137 return 'v8.todomvc'
136 138
137 @classmethod 139 @classmethod
138 def ShouldTearDownStateAfterEachStoryRun(cls): 140 def ShouldTearDownStateAfterEachStoryRun(cls):
139 return True 141 return True
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/todomvc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698