Chromium Code Reviews| 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 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 Loading... | |
| 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
| |
| OLD | NEW |