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

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

Issue 1781603002: [telemetry] Add TodoMVC examples based test for V8 to telemetry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/data/todomvc.json » ('j') | tools/perf/page_sets/todomvc.py » ('J')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return (value.name.startswith('memory_') and 111 return (value.name.startswith('memory_') and
112 'v8_renderer' in value.name) or \ 112 'v8_renderer' in value.name) or \
113 (value.name.startswith('v8_') and not 113 (value.name.startswith('v8_') and not
114 value.name.startswith('v8_gc')) 114 value.name.startswith('v8_gc'))
115 else: 115 else:
116 return value.tir_label == 'Scrolling' 116 return value.tir_label == 'Scrolling'
117 117
118 @classmethod 118 @classmethod
119 def ShouldTearDownStateAfterEachStoryRun(cls): 119 def ShouldTearDownStateAfterEachStoryRun(cls):
120 return True 120 return True
121
122
123 class V8TodoMVC(perf_benchmark.PerfBenchmark):
124 """Measures V8 Execution metrics on the TodoMVC examples."""
125 page_set = page_sets.TodoMVCPageSet
126
127 def CreateTimelineBasedMeasurementOptions(self):
128 category_filter = tracing_category_filter.TracingCategoryFilter('v8')
129 options = timeline_based_measurement.Options(category_filter)
130 options.SetLegacyTimelineBasedMetrics([v8_execution.V8ExecutionMetric()])
131 return options
132
133 @classmethod
134 def Name(cls):
135 return 'v8.todomvc'
136
137 @classmethod
138 def ShouldTearDownStateAfterEachStoryRun(cls):
139 return True
Sami 2016/03/09 18:39:02 Any particular reason for restarting? It probably
jochen (gone - plz use gerrit) 2016/03/09 18:44:42 using the same renderer will result in some of the
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/data/todomvc.json » ('j') | tools/perf/page_sets/todomvc.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698