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 core
import perf_benchmark
9 from benchmarks
import blink_perf
10 from benchmarks
import silk_flags
11 from measurements
import oilpan_gc_times
13 from telemetry
import benchmark
16 @benchmark.Enabled('content-shell')
17 class OilpanGCTimesBlinkPerfStress(perf_benchmark
.PerfBenchmark
):
18 tag
= 'blink_perf_stress'
19 test
= oilpan_gc_times
.OilpanGCTimesForInternals
23 return 'oilpan_gc_times.blink_perf_stress'
25 def CreateStorySet(self
, options
):
26 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'BlinkGC')
27 return blink_perf
.CreateStorySetFromPath(path
, blink_perf
.SKIPPED_FILE
)
30 class OilpanGCTimesSmoothnessAnimation(perf_benchmark
.PerfBenchmark
):
31 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
32 page_set
= page_sets
.ToughAnimationCasesPageSet
36 return 'oilpan_gc_times.tough_animation_cases'
39 @benchmark.Enabled('android')
40 class OilpanGCTimesKeySilkCases(perf_benchmark
.PerfBenchmark
):
41 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
42 page_set
= page_sets
.KeySilkCasesPageSet
46 return 'oilpan_gc_times.key_silk_cases'
49 @benchmark.Enabled('android')
50 class OilpanGCTimesSyncScrollKeyMobileSites(perf_benchmark
.PerfBenchmark
):
52 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
53 page_set
= page_sets
.KeyMobileSitesSmoothPageSet
54 def SetExtraBrowserOptions(self
, options
):
55 silk_flags
.CustomizeBrowserOptionsForSyncScrolling(options
)
58 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth'