| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 test = power.Power | 49 test = power.Power |
| 50 page_set = page_sets.ToughAdCasesPageSet | 50 page_set = page_sets.ToughAdCasesPageSet |
| 51 | 51 |
| 52 def SetExtraBrowserOptions(self, options): | 52 def SetExtraBrowserOptions(self, options): |
| 53 options.full_performance_mode = False | 53 options.full_performance_mode = False |
| 54 | 54 |
| 55 @classmethod | 55 @classmethod |
| 56 def Name(cls): | 56 def Name(cls): |
| 57 return 'power.tough_ad_cases' | 57 return 'power.tough_ad_cases' |
| 58 | 58 |
| 59 @classmethod |
| 60 def ShouldDisable(cls, possible_browser): |
| 61 return cls.IsSvelte(possible_browser) # http://crbug.com/593973 |
| 62 |
| 59 | 63 |
| 60 @benchmark.Enabled('android') | 64 @benchmark.Enabled('android') |
| 61 @benchmark.Disabled('all') | 65 @benchmark.Disabled('all') |
| 62 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): | 66 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): |
| 63 """Android typical 10 mobile power reload test.""" | 67 """Android typical 10 mobile power reload test.""" |
| 64 test = power.LoadPower | 68 test = power.LoadPower |
| 65 page_set = page_sets.Typical10MobileReloadPageSet | 69 page_set = page_sets.Typical10MobileReloadPageSet |
| 66 | 70 |
| 67 def SetExtraBrowserOptions(self, options): | 71 def SetExtraBrowserOptions(self, options): |
| 68 options.full_performance_mode = False | 72 options.full_performance_mode = False |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return 'power.gpu_rasterization.top_25' | 165 return 'power.gpu_rasterization.top_25' |
| 162 | 166 |
| 163 def CreateStorySet(self, _): | 167 def CreateStorySet(self, _): |
| 164 # Exclude techcrunch.com. It is not suitable for this benchmark because it | 168 # Exclude techcrunch.com. It is not suitable for this benchmark because it |
| 165 # does not consistently become quiescent within 60 seconds. | 169 # does not consistently become quiescent within 60 seconds. |
| 166 stories = self.page_set() | 170 stories = self.page_set() |
| 167 found = next((x for x in stories if 'techcrunch.com' in x.url), None) | 171 found = next((x for x in stories if 'techcrunch.com' in x.url), None) |
| 168 if found: | 172 if found: |
| 169 stories.RemoveStory(found) | 173 stories.RemoveStory(found) |
| 170 return stories | 174 return stories |
| OLD | NEW |