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
9 from telemetry
import benchmark
12 @benchmark.Enabled('android')
13 class MemoryMobile(perf_benchmark
.PerfBenchmark
):
15 page_set
= page_sets
.MobileMemoryPageSet
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."""
26 page_set
= page_sets
.Top7StressPageSet
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 """
37 page_set
= page_sets
.LongRunningIdleGmailPageSet
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"""
48 page_set
= page_sets
.LongRunningIdleGmailBackgroundPageSet
52 return 'memory.long_running_idle_gmail_background'