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.
7 from telemetry
import benchmark
8 from telemetry
.core
import util
9 from telemetry
import page
11 from benchmarks
import blink_perf
12 from benchmarks
import silk_flags
13 from measurements
import oilpan_gc_times
17 class OilpanGCTimesBlinkPerfAnimation(benchmark
.Benchmark
):
18 tag
= 'blink_perf_animation'
19 test
= oilpan_gc_times
.OilpanGCTimesForBlinkPerf
23 return 'oilpan_gc_times.blink_perf_animation'
25 def CreatePageSet(self
, options
):
26 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'Animation')
27 return blink_perf
.CreatePageSetFromPath(path
, blink_perf
.SKIPPED_FILE
)
30 @benchmark.Enabled('content-shell')
31 class OilpanGCTimesBlinkPerfStress(benchmark
.Benchmark
):
32 tag
= 'blink_perf_stress'
33 test
= oilpan_gc_times
.OilpanGCTimesForInternals
37 return 'oilpan_gc_times.blink_perf_stress'
39 def CreatePageSet(self
, options
):
40 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'BlinkGC')
41 return blink_perf
.CreatePageSetFromPath(path
, blink_perf
.SKIPPED_FILE
)
44 class OilpanGCTimesSmoothnessAnimation(benchmark
.Benchmark
):
45 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
46 page_set
= page_sets
.ToughAnimationCasesPageSet
50 return 'oilpan_gc_times.tough_animation_cases'
53 @benchmark.Enabled('android')
54 class OilpanGCTimesKeySilkCases(benchmark
.Benchmark
):
55 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
56 page_set
= page_sets
.KeySilkCasesPageSet
60 return 'oilpan_gc_times.key_silk_cases'
63 @benchmark.Enabled('android')
64 class OilpanGCTimesSyncScrollKeyMobileSites(benchmark
.Benchmark
):
66 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
67 page_set
= page_sets
.KeyMobileSitesSmoothPageSet
68 def CustomizeBrowserOptions(self
, options
):
69 silk_flags
.CustomizeBrowserOptionsForSyncScrolling(options
)
72 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth'