Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / tools / perf / benchmarks / memory.py
blobc796b6ede65c4f3abdb4720f653a6ebb59012122
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 import page_sets
9 from telemetry import benchmark
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 @benchmark.Disabled('yosemite') # crbug.com/517806
23 class MemoryTop7Stress(perf_benchmark.PerfBenchmark):
24 """Use (recorded) real world web sites and measure memory consumption."""
25 test = memory.Memory
26 page_set = page_sets.Top7StressPageSet
28 @classmethod
29 def Name(cls):
30 return 'memory.top_7_stress'
33 class MemoryLongRunningIdleGmail(perf_benchmark.PerfBenchmark):
34 """Use (recorded) real world web sites and measure memory consumption
35 of long running idle Gmail page """
36 test = memory.Memory
37 page_set = page_sets.LongRunningIdleGmailPageSet
39 @classmethod
40 def Name(cls):
41 return 'memory.long_running_idle_gmail'
44 class MemoryLongRunningIdleGmailBackground(perf_benchmark.PerfBenchmark):
45 """Use (recorded) real world web sites and measure memory consumption
46 of long running idle Gmail page in background tab"""
47 test = memory.Memory
48 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet
50 @classmethod
51 def Name(cls):
52 return 'memory.long_running_idle_gmail_background'