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 core import perf_benchmark | 5 from core import perf_benchmark |
6 | 6 |
7 from measurements import memory | 7 from measurements import memory |
8 import page_sets | 8 import page_sets |
9 from telemetry import benchmark | 9 from telemetry import benchmark |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 class MemoryTop7Stress(perf_benchmark.PerfBenchmark): | 22 class MemoryTop7Stress(perf_benchmark.PerfBenchmark): |
23 """Use (recorded) real world web sites and measure memory consumption.""" | 23 """Use (recorded) real world web sites and measure memory consumption.""" |
24 test = memory.Memory | 24 test = memory.Memory |
25 page_set = page_sets.Top7StressPageSet | 25 page_set = page_sets.Top7StressPageSet |
26 | 26 |
27 @classmethod | 27 @classmethod |
28 def Name(cls): | 28 def Name(cls): |
29 return 'memory.top_7_stress' | 29 return 'memory.top_7_stress' |
30 | 30 |
31 | 31 |
32 class MemoryTop7StressWithSlimmingPaint(perf_benchmark.PerfBenchmark): | |
33 """Use (recorded) real world web sites and measure memory consumption, | |
34 with --enable--slimming-paint.""" | |
35 | |
36 test = memory.Memory | |
37 page_set = page_sets.Top7StressPageSet | |
38 | |
39 def SetExtraBrowserOptions(self, options): | |
40 options.AppendExtraBrowserArgs(['--enable-slimming-paint']) | |
41 | |
42 @classmethod | |
43 def Name(cls): | |
44 return 'memory.top_7_stress_slimming_paint' | |
45 | |
46 | |
47 @benchmark.Enabled('has tabs') | 32 @benchmark.Enabled('has tabs') |
48 @benchmark.Disabled('android', # Benchmark uses > 700MB of memory. | 33 @benchmark.Disabled('android', # Benchmark uses > 700MB of memory. |
49 'linux') # https://crbug.com/490841 | 34 'linux') # https://crbug.com/490841 |
50 class MemoryIdleMultiTab(perf_benchmark.PerfBenchmark): | 35 class MemoryIdleMultiTab(perf_benchmark.PerfBenchmark): |
51 """Use (recorded) real world web sites and measure memory consumption | 36 """Use (recorded) real world web sites and measure memory consumption |
52 with many tabs and idle times. """ | 37 with many tabs and idle times. """ |
53 test = memory.Memory | 38 test = memory.Memory |
54 page_set = page_sets.IdleMultiTabCasesPageSet | 39 page_set = page_sets.IdleMultiTabCasesPageSet |
55 | 40 |
56 def SetExtraBrowserOptions(self, options): | 41 def SetExtraBrowserOptions(self, options): |
57 # This benchmark opens tabs from JavaScript, which does not work | 42 # This benchmark opens tabs from JavaScript, which does not work |
58 # with popup-blocking enabled. | 43 # with popup-blocking enabled. |
59 options.AppendExtraBrowserArgs(['--disable-popup-blocking']) | 44 options.AppendExtraBrowserArgs(['--disable-popup-blocking']) |
60 | 45 |
61 @classmethod | 46 @classmethod |
62 def Name(cls): | 47 def Name(cls): |
63 return 'memory.idle_multi_tab' | 48 return 'memory.idle_multi_tab' |
OLD | NEW |