OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from measurements import memory | 5 from measurements import memory |
6 import page_sets | 6 import page_sets |
7 from telemetry import benchmark | 7 from telemetry import benchmark |
8 | 8 |
9 | 9 |
10 @benchmark.Enabled('android') | 10 @benchmark.Enabled('android') |
11 class MemoryMobile(benchmark.Benchmark): | 11 class MemoryMobile(benchmark.Benchmark): |
12 test = memory.Memory | 12 test = memory.Memory |
13 page_set = page_sets.MobileMemoryPageSet | 13 page_set = page_sets.MobileMemoryPageSet |
14 | 14 |
| 15 @classmethod |
| 16 def Name(cls): |
| 17 return 'memory.mobile_memory' |
| 18 |
15 | 19 |
16 @benchmark.Disabled | 20 @benchmark.Disabled |
17 class MemoryTop7Stress(benchmark.Benchmark): | 21 class MemoryTop7Stress(benchmark.Benchmark): |
18 """Use (recorded) real world web sites and measure memory consumption.""" | 22 """Use (recorded) real world web sites and measure memory consumption.""" |
19 test = memory.Memory | 23 test = memory.Memory |
20 page_set = page_sets.Top7StressPageSet | 24 page_set = page_sets.Top7StressPageSet |
21 | 25 |
| 26 @classmethod |
| 27 def Name(cls): |
| 28 return 'memory.top_7_stress' |
| 29 |
22 | 30 |
23 @benchmark.Disabled | 31 @benchmark.Disabled |
24 class Reload2012Q3(benchmark.Benchmark): | 32 class Reload2012Q3(benchmark.Benchmark): |
25 """Memory consumption for a set of top pages from 2012. | 33 """Memory consumption for a set of top pages from 2012. |
26 | 34 |
27 Performs reloading and garbage collecting on each page load.""" | 35 Performs reloading and garbage collecting on each page load.""" |
28 tag = 'reload' | 36 tag = 'reload' |
29 test = memory.Memory | 37 test = memory.Memory |
30 page_set = page_sets.Top2012Q3StressPageSet | 38 page_set = page_sets.Top2012Q3StressPageSet |
31 | 39 |
| 40 @classmethod |
| 41 def Name(cls): |
| 42 return 'memory.reload.top_desktop_sites_2012Q3_stress' |
| 43 |
32 | 44 |
33 @benchmark.Disabled # crbug.com/371153 | 45 @benchmark.Disabled # crbug.com/371153 |
34 class MemoryToughDomMemoryCases(benchmark.Benchmark): | 46 class MemoryToughDomMemoryCases(benchmark.Benchmark): |
35 test = memory.Memory | 47 test = memory.Memory |
36 page_set = page_sets.ToughDomMemoryCasesPageSet | 48 page_set = page_sets.ToughDomMemoryCasesPageSet |
37 | 49 |
| 50 @classmethod |
| 51 def Name(cls): |
| 52 return 'memory.tough_dom_memory_cases' |
| 53 |
38 | 54 |
39 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win') | 55 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win') |
40 @benchmark.Enabled('has tabs') | 56 @benchmark.Enabled('has tabs') |
41 class TypicalMobileSites(benchmark.Benchmark): | 57 class TypicalMobileSites(benchmark.Benchmark): |
42 """Long memory test.""" | 58 """Long memory test.""" |
43 test = memory.Memory | 59 test = memory.Memory |
44 page_set = page_sets.TypicalMobileSitesPageSet | 60 page_set = page_sets.TypicalMobileSitesPageSet |
45 options = {'pageset_repeat': 15} | 61 options = {'pageset_repeat': 15} |
| 62 @classmethod |
| 63 def Name(cls): |
| 64 return 'memory.typical_mobile_sites' |
| 65 |
OLD | NEW |