| 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 tab_switching | 7 from measurements import tab_switching |
| 8 import page_sets | 8 import page_sets |
| 9 | 9 |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 metric. The pages were chosen by hand to stress the image decoding system. | 95 metric. The pages were chosen by hand to stress the image decoding system. |
| 96 """ | 96 """ |
| 97 test = tab_switching.TabSwitching | 97 test = tab_switching.TabSwitching |
| 98 page_set = page_sets.ToughImageCasesPageSet | 98 page_set = page_sets.ToughImageCasesPageSet |
| 99 | 99 |
| 100 @classmethod | 100 @classmethod |
| 101 def Name(cls): | 101 def Name(cls): |
| 102 return 'tab_switching.tough_image_cases' | 102 return 'tab_switching.tough_image_cases' |
| 103 | 103 |
| 104 | 104 |
| 105 @benchmark.Disabled # Just for local testing, not on waterfall. | 105 @benchmark.Enabled('linux', 'mac', 'win', 'chromeos') |
| 106 class TabSwitchingFlashEnergyCases(benchmark.Benchmark): | 106 class TabSwitchingFlashEnergyCases(benchmark.Benchmark): |
| 107 test = tab_switching.TabSwitching | 107 test = tab_switching.TabSwitching |
| 108 page_set = page_sets.FlashEnergyCasesPageSet | 108 page_set = page_sets.FlashEnergyCasesPageSet |
| 109 options = {'pageset_repeat': 10} | 109 options = {'pageset_repeat': 10} |
| 110 |
| 110 @classmethod | 111 @classmethod |
| 111 def Name(cls): | 112 def Name(cls): |
| 112 return 'tab_switching.flash_energy_cases' | 113 return 'tab_switching.flash_energy_cases' |
| 113 | 114 |
| 115 |
| 116 @benchmark.Enabled('linux', 'mac', 'win', 'chromeos') |
| 117 class TabSwitchingPluginPowerSaver(benchmark.Benchmark): |
| 118 test = tab_switching.TabSwitching |
| 119 page_set = page_sets.FlashEnergyCasesPageSet |
| 120 options = {'pageset_repeat': 10} |
| 121 |
| 122 def CustomizeBrowserOptions(self, options): |
| 123 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
| 124 |
| 125 @classmethod |
| 126 def Name(cls): |
| 127 return 'tab_switching.plugin_power_saver' |
| OLD | NEW |