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 | 4 |
5 import page_sets | 5 import page_sets |
6 from telemetry.web_perf import timeline_based_measurement | 6 from telemetry.web_perf import timeline_based_measurement |
7 from telemetry import benchmark | 7 from telemetry import benchmark |
8 | 8 |
9 | 9 |
10 @benchmark.Disabled('win') # crbug.com/416502 | 10 @benchmark.Disabled('win') # crbug.com/416502 |
11 class V8GarbageCollectionCases(benchmark.Benchmark): | 11 class V8GarbageCollectionCases(benchmark.Benchmark): |
12 """Measure V8 metrics on the garbage collection cases.""" | 12 """Measure V8 metrics on the garbage collection cases.""" |
13 def CreateTimelineBasedMeasurementOptions(self): | 13 def CreateTimelineBasedMeasurementOptions(self): |
14 # TODO(ernstm): Remove v8-overhead when benchmark relevant v8 events become | 14 # TODO(ernstm): Remove v8-overhead when benchmark relevant v8 events become |
15 # available in the 'benchmark' category. | 15 # available in the 'benchmark' category. |
16 return timeline_based_measurement.Options(overhead_level='v8-overhead') | 16 return timeline_based_measurement.Options(overhead_level='v8-overhead') |
17 | 17 |
| 18 @classmethod |
| 19 def Name(cls): |
| 20 return 'v8.garbage_collection_cases' |
| 21 |
18 page_set = page_sets.GarbageCollectionCasesPageSet | 22 page_set = page_sets.GarbageCollectionCasesPageSet |
OLD | NEW |