Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / tools / perf / benchmarks / memory.py
blobc1897e11d32dcb1f032706cb1204e575da6e1171
1 # Copyright 2013 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 from core import perf_benchmark
7 from measurements import memory
8 from telemetry import benchmark
9 import page_sets
12 @benchmark.Enabled('android')
13 class MemoryMobile(perf_benchmark.PerfBenchmark):
14 test = memory.Memory
15 page_set = page_sets.MobileMemoryPageSet
17 @classmethod
18 def Name(cls):
19 return 'memory.mobile_memory'
22 class MemoryTop7Stress(perf_benchmark.PerfBenchmark):
23 """Use (recorded) real world web sites and measure memory consumption."""
24 test = memory.Memory
25 page_set = page_sets.Top7StressPageSet
27 @classmethod
28 def Name(cls):
29 return 'memory.top_7_stress'
32 class MemoryTop7StressWithSlimmingPaint(perf_benchmark.PerfBenchmark):
33 """Use (recorded) real world web sites and measure memory consumption,
34 with --enable--slimming-paint."""
36 test = memory.Memory
37 page_set = page_sets.Top7StressPageSet
39 def SetExtraBrowserOptions(self, options):
40 options.AppendExtraBrowserArgs(['--enable-slimming-paint'])
42 @classmethod
43 def Name(cls):
44 return 'memory.top_7_stress_slimming_paint'
47 @benchmark.Enabled('has tabs')
48 @benchmark.Disabled('android') # Benchmark uses > 700MB of memory.
49 class MemoryIdleMultiTab(perf_benchmark.PerfBenchmark):
50 """Use (recorded) real world web sites and measure memory consumption
51 with many tabs and idle times. """
52 test = memory.Memory
53 page_set = page_sets.IdleMultiTabCasesPageSet
55 def SetExtraBrowserOptions(self, options):
56 # This benchmark opens tabs from JavaScript, which does not work
57 # with popup-blocking enabled.
58 options.AppendExtraBrowserArgs(['--disable-popup-blocking'])
60 @classmethod
61 def Name(cls):
62 return 'memory.idle_multi_tab'