| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 benchmarks import silk_flags | 7 from benchmarks import silk_flags |
| 8 from measurements import power | 8 from measurements import power |
| 9 import page_sets | 9 import page_sets |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 def SetExtraBrowserOptions(self, options): | 91 def SetExtraBrowserOptions(self, options): |
| 92 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 92 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 93 options.full_performance_mode = False | 93 options.full_performance_mode = False |
| 94 | 94 |
| 95 @classmethod | 95 @classmethod |
| 96 def Name(cls): | 96 def Name(cls): |
| 97 return 'power.gpu_rasterization.top_10' | 97 return 'power.gpu_rasterization.top_10' |
| 98 | 98 |
| 99 | 99 |
| 100 @benchmark.Enabled('mac') | 100 @benchmark.Enabled('mac') |
| 101 @benchmark.Disabled('reference') # crbug.com/547833 |
| 101 class PowerTop25(perf_benchmark.PerfBenchmark): | 102 class PowerTop25(perf_benchmark.PerfBenchmark): |
| 102 """Top 25 quiescent power test.""" | 103 """Top 25 quiescent power test.""" |
| 103 test = power.QuiescentPower | 104 test = power.QuiescentPower |
| 104 page_set = page_sets.Top25PageSet | 105 page_set = page_sets.Top25PageSet |
| 105 | 106 |
| 106 def SetExtraBrowserOptions(self, options): | 107 def SetExtraBrowserOptions(self, options): |
| 107 options.full_performance_mode = False | 108 options.full_performance_mode = False |
| 108 | 109 |
| 109 @classmethod | 110 @classmethod |
| 110 def Name(cls): | 111 def Name(cls): |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 page_set = page_sets.ThrottledPluginsPageSet | 205 page_set = page_sets.ThrottledPluginsPageSet |
| 205 options = {'pageset_repeat': 5} | 206 options = {'pageset_repeat': 5} |
| 206 | 207 |
| 207 def SetExtraBrowserOptions(self, options): | 208 def SetExtraBrowserOptions(self, options): |
| 208 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) | 209 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
| 209 options.full_performance_mode = False | 210 options.full_performance_mode = False |
| 210 | 211 |
| 211 @classmethod | 212 @classmethod |
| 212 def Name(cls): | 213 def Name(cls): |
| 213 return 'power.throttled_plugins_pps_enabled' | 214 return 'power.throttled_plugins_pps_enabled' |
| OLD | NEW |