| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |