Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: tools/perf/benchmarks/power.py

Issue 1783233004: Disabling power.touch_ad_cases to turn Android One green. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabling test only on Svelte devices Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698