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