blob: a7388afd1619ff4a6e682ff278aa3195a9e2e697 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from core import perf_benchmark
from measurements import memory
from telemetry import benchmark
import page_sets
@benchmark.Enabled('android')
class MemoryMobile(perf_benchmark.PerfBenchmark):
test = memory.Memory
page_set = page_sets.MobileMemoryPageSet
@classmethod
def Name(cls):
return 'memory.mobile_memory'
class MemoryTop7Stress(perf_benchmark.PerfBenchmark):
"""Use (recorded) real world web sites and measure memory consumption."""
test = memory.Memory
page_set = page_sets.Top7StressPageSet
@classmethod
def Name(cls):
return 'memory.top_7_stress'
class MemoryTop7StressWithSlimmingPaint(perf_benchmark.PerfBenchmark):
"""Use (recorded) real world web sites and measure memory consumption,
with --enable--slimming-paint."""
test = memory.Memory
page_set = page_sets.Top7StressPageSet
def SetExtraBrowserOptions(self, options):
options.AppendExtraBrowserArgs(['--enable-slimming-paint'])
@classmethod
def Name(cls):
return 'memory.top_7_stress_slimming_paint'
# @benchmark.Enabled('has tabs')
# @benchmark.Disabled('android') # Benchmark uses > 700MB of memory.
@benchmark.Disabled # crbug.com/490841
class MemoryIdleMultiTab(perf_benchmark.PerfBenchmark):
"""Use (recorded) real world web sites and measure memory consumption
with many tabs and idle times. """
test = memory.Memory
page_set = page_sets.IdleMultiTabCasesPageSet
def SetExtraBrowserOptions(self, options):
# This benchmark opens tabs from JavaScript, which does not work
# with popup-blocking enabled.
options.AppendExtraBrowserArgs(['--disable-popup-blocking'])
@classmethod
def Name(cls):
return 'memory.idle_multi_tab'
|