| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 def SetExtraBrowserOptions(self, options): | 33 def SetExtraBrowserOptions(self, options): |
| 34 options.full_performance_mode = False | 34 options.full_performance_mode = False |
| 35 | 35 |
| 36 @classmethod | 36 @classmethod |
| 37 def Name(cls): | 37 def Name(cls): |
| 38 return 'power.typical_10_mobile' | 38 return 'power.typical_10_mobile' |
| 39 | 39 |
| 40 | 40 |
| 41 @benchmark.Enabled('android') | 41 @benchmark.Enabled('android') |
| 42 @benchmark.Disabled | 42 @benchmark.Disabled('all') |
| 43 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): | 43 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): |
| 44 """Android typical 10 mobile power reload test.""" | 44 """Android typical 10 mobile power reload test.""" |
| 45 test = power.LoadPower | 45 test = power.LoadPower |
| 46 page_set = page_sets.Typical10MobileReloadPageSet | 46 page_set = page_sets.Typical10MobileReloadPageSet |
| 47 | 47 |
| 48 def SetExtraBrowserOptions(self, options): | 48 def SetExtraBrowserOptions(self, options): |
| 49 options.full_performance_mode = False | 49 options.full_performance_mode = False |
| 50 | 50 |
| 51 @classmethod | 51 @classmethod |
| 52 def Name(cls): | 52 def Name(cls): |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 page_set = page_sets.ThrottledPluginsPageSet | 206 page_set = page_sets.ThrottledPluginsPageSet |
| 207 options = {'pageset_repeat': 5} | 207 options = {'pageset_repeat': 5} |
| 208 | 208 |
| 209 def SetExtraBrowserOptions(self, options): | 209 def SetExtraBrowserOptions(self, options): |
| 210 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) | 210 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
| 211 options.full_performance_mode = False | 211 options.full_performance_mode = False |
| 212 | 212 |
| 213 @classmethod | 213 @classmethod |
| 214 def Name(cls): | 214 def Name(cls): |
| 215 return 'power.throttled_plugins_pps_enabled' | 215 return 'power.throttled_plugins_pps_enabled' |
| OLD | NEW |