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