[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / perf / benchmarks / oilpan_gc_times.py
blob6f55e1e5af3e7a3a832c689dfd74b297ed3edde3
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.
5 import os
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
14 import page_sets
17 class OilpanGCTimesBlinkPerfAnimation(benchmark.Benchmark):
18 tag = 'blink_perf_animation'
19 test = oilpan_gc_times.OilpanGCTimesForBlinkPerf
21 @classmethod
22 def Name(cls):
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
35 @classmethod
36 def Name(cls):
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
48 @classmethod
49 def Name(cls):
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
58 @classmethod
59 def Name(cls):
60 return 'oilpan_gc_times.key_silk_cases'
63 @benchmark.Enabled('android')
64 class OilpanGCTimesSyncScrollKeyMobileSites(benchmark.Benchmark):
65 tag = 'sync_scroll'
66 test = oilpan_gc_times.OilpanGCTimesForSmoothness
67 page_set = page_sets.KeyMobileSitesSmoothPageSet
68 def CustomizeBrowserOptions(self, options):
69 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options)
70 @classmethod
71 def Name(cls):
72 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth'