| 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 class MemoryIdleMultiTab(benchmark.Benchmark): |
| 47 """Use (recorded) real world web sites and measure memory consumption |
| 48 with many tabs and idle times. """ |
| 49 test = memory.Memory |
| 50 page_set = page_sets.IdleMultiTabCasesPageSet |
| 51 |
| 52 def CustomizeBrowserOptions(self, options): |
| 53 # This benchmark opens tabs from JavaScript, which does not work |
| 54 # with popup-blocking enabled. |
| 55 options.AppendExtraBrowserArgs(['--disable-popup-blocking']) |
| 56 |
| 57 @classmethod |
| 58 def Name(cls): |
| 59 return 'memory.idle_multi_tab' |
| OLD | NEW |