Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / tools / perf / benchmarks / oilpan_gc_times.py
blob5c77aa9caacf38a7e7f1508c74106856c884bc3d
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 core import perf_benchmark
9 from benchmarks import blink_perf
10 from benchmarks import silk_flags
11 from measurements import oilpan_gc_times
12 from telemetry import benchmark
13 import page_sets
16 class OilpanGCTimesBlinkPerfAnimation(perf_benchmark.PerfBenchmark):
17 tag = 'blink_perf_animation'
18 test = oilpan_gc_times.OilpanGCTimesForBlinkPerf
20 @classmethod
21 def Name(cls):
22 return 'oilpan_gc_times.blink_perf_animation'
24 def CreatePageSet(self, options):
25 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'Animation')
26 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE)
29 @benchmark.Enabled('content-shell')
30 class OilpanGCTimesBlinkPerfStress(perf_benchmark.PerfBenchmark):
31 tag = 'blink_perf_stress'
32 test = oilpan_gc_times.OilpanGCTimesForInternals
34 @classmethod
35 def Name(cls):
36 return 'oilpan_gc_times.blink_perf_stress'
38 def CreatePageSet(self, options):
39 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC')
40 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE)
43 class OilpanGCTimesSmoothnessAnimation(perf_benchmark.PerfBenchmark):
44 test = oilpan_gc_times.OilpanGCTimesForSmoothness
45 page_set = page_sets.ToughAnimationCasesPageSet
47 @classmethod
48 def Name(cls):
49 return 'oilpan_gc_times.tough_animation_cases'
52 @benchmark.Enabled('android')
53 class OilpanGCTimesKeySilkCases(perf_benchmark.PerfBenchmark):
54 test = oilpan_gc_times.OilpanGCTimesForSmoothness
55 page_set = page_sets.KeySilkCasesPageSet
57 @classmethod
58 def Name(cls):
59 return 'oilpan_gc_times.key_silk_cases'
62 @benchmark.Enabled('android')
63 class OilpanGCTimesSyncScrollKeyMobileSites(perf_benchmark.PerfBenchmark):
64 tag = 'sync_scroll'
65 test = oilpan_gc_times.OilpanGCTimesForSmoothness
66 page_set = page_sets.KeyMobileSitesSmoothPageSet
67 def SetExtraBrowserOptions(self, options):
68 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options)
69 @classmethod
70 def Name(cls):
71 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth'