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.
8 from benchmarks
import blink_perf
9 from benchmarks
import silk_flags
10 from measurements
import oilpan_gc_times
11 from measurements
import smoothness
12 from telemetry
import benchmark
13 from telemetry
.core
import util
14 from telemetry
import page
17 class OilpanGCTimesBlinkPerfAnimation(benchmark
.Benchmark
):
18 tag
= 'blink_perf_animation'
19 test
= oilpan_gc_times
.OilpanGCTimesForBlinkPerf
21 def CreatePageSet(self
, options
):
22 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'Animation')
23 return blink_perf
.CreatePageSetFromPath(path
, blink_perf
.SKIPPED_FILE
)
26 @benchmark.Enabled('content-shell')
27 class OilpanGCTimesBlinkPerfStress(benchmark
.Benchmark
):
28 tag
= 'blink_perf_stress'
29 test
= oilpan_gc_times
.OilpanGCTimesForInternals
31 def CreatePageSet(self
, options
):
32 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'BlinkGC')
33 return blink_perf
.CreatePageSetFromPath(path
, blink_perf
.SKIPPED_FILE
)
36 class OilpanGCTimesSmoothnessAnimation(benchmark
.Benchmark
):
37 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
38 page_set
= page_sets
.ToughAnimationCasesPageSet
41 # TODO(peria): Add more page sets. 'key_silk_cases' and
42 # 'smoothness.sync_scroll.key_mobile_sites' are wanted for now.