| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 page_set = page_sets.Typical10MobilePageSet | 61 page_set = page_sets.Typical10MobilePageSet |
| 62 | 62 |
| 63 def SetExtraBrowserOptions(self, options): | 63 def SetExtraBrowserOptions(self, options): |
| 64 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 64 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 65 options.full_performance_mode = False | 65 options.full_performance_mode = False |
| 66 | 66 |
| 67 @classmethod | 67 @classmethod |
| 68 def Name(cls): | 68 def Name(cls): |
| 69 return 'power.gpu_rasterization.typical_10_mobile' | 69 return 'power.gpu_rasterization.typical_10_mobile' |
| 70 | 70 |
| 71 @classmethod |
| 72 def ShouldDisable(cls, possible_browser): |
| 73 return cls.IsSvelte(possible_browser) # http://crbug.com/563968 |
| 74 |
| 75 |
| 71 @benchmark.Enabled('mac') | 76 @benchmark.Enabled('mac') |
| 72 class PowerTop10(perf_benchmark.PerfBenchmark): | 77 class PowerTop10(perf_benchmark.PerfBenchmark): |
| 73 """Top 10 quiescent power test.""" | 78 """Top 10 quiescent power test.""" |
| 74 test = power.QuiescentPower | 79 test = power.QuiescentPower |
| 75 page_set = page_sets.Top10PageSet | 80 page_set = page_sets.Top10PageSet |
| 76 | 81 |
| 77 def SetExtraBrowserOptions(self, options): | 82 def SetExtraBrowserOptions(self, options): |
| 78 options.full_performance_mode = False | 83 options.full_performance_mode = False |
| 79 | 84 |
| 80 @classmethod | 85 @classmethod |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 page_set = page_sets.ThrottledPluginsPageSet | 211 page_set = page_sets.ThrottledPluginsPageSet |
| 207 options = {'pageset_repeat': 5} | 212 options = {'pageset_repeat': 5} |
| 208 | 213 |
| 209 def SetExtraBrowserOptions(self, options): | 214 def SetExtraBrowserOptions(self, options): |
| 210 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) | 215 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
| 211 options.full_performance_mode = False | 216 options.full_performance_mode = False |
| 212 | 217 |
| 213 @classmethod | 218 @classmethod |
| 214 def Name(cls): | 219 def Name(cls): |
| 215 return 'power.throttled_plugins_pps_enabled' | 220 return 'power.throttled_plugins_pps_enabled' |
| OLD | NEW |