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

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

Issue 1138243003: Telemetry: Exclude techcrunch.com from power.top_25 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cpu
Patch Set: Created 5 years, 7 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 telemetry import benchmark 5 from telemetry import 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 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 @benchmark.Enabled('mac') 45 @benchmark.Enabled('mac')
46 class PowerTop10(benchmark.Benchmark): 46 class PowerTop10(benchmark.Benchmark):
47 """Top 10 quiescent power test.""" 47 """Top 10 quiescent power test."""
48 test = power.QuiescentPower 48 test = power.QuiescentPower
49 page_set = page_sets.Top10PageSet 49 page_set = page_sets.Top10PageSet
50 @classmethod 50 @classmethod
51 def Name(cls): 51 def Name(cls):
52 return 'power.top_10' 52 return 'power.top_10'
53 53
54 54
55 @benchmark.Disabled() # crbug.com/489214 55 @benchmark.Enabled('mac')
56 class PowerTop25(benchmark.Benchmark): 56 class PowerTop25(benchmark.Benchmark):
57 """Top 25 quiescent power test.""" 57 """Top 25 quiescent power test."""
58 test = power.QuiescentPower 58 test = power.QuiescentPower
59 page_set = page_sets.Top25PageSet 59 page_set = page_sets.Top25PageSet
60 @classmethod 60 @classmethod
61 def Name(cls): 61 def Name(cls):
62 return 'power.top_25' 62 return 'power.top_25'
63
64 def CreateUserStorySet(self, _):
65 # Exclude techcrunch.com. It is not suitable for this benchmark because it
66 # does not consistently become quiescent within 60 seconds.
67 user_stories = self.page_set()
68 found = next((x for x in user_stories if 'techcrunch.com' in x.url), None)
69 if found:
70 user_stories.RemoveUserStory(found)
71 return user_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