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
3 # found in the LICENSE file.
6 from telemetry
.web_perf
import timeline_based_measurement
7 from telemetry
import benchmark
9 class V8GarbageCollectionCases(benchmark
.Benchmark
):
10 """Measure V8 metrics on the garbage collection cases."""
11 test
= timeline_based_measurement
.TimelineBasedMeasurement
12 page_set
= page_sets
.GarbageCollectionCasesPageSet
14 # TODO(ernstm): Remove this argument when benchmark relevant v8 events become
15 # available in the 'benchmark' category.
17 def SetArgumentDefaults(cls
, parser
):
18 parser
.set_defaults(overhead_level
='v8-overhead')