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

Side by Side Diff: tools/perf/page_sets/idle_platform.py

Issue 2924643002: Explicitly setting names for stories in the power benchmarks (Closed)
Patch Set: Created 3 years, 6 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 | « tools/perf/page_sets/android_acceptance.py ('k') | tools/perf/page_sets/trivial_sites.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 import time 4 import time
5 5
6 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
7 from telemetry import story 7 from telemetry import story
8 8
9 9
10 class _IdleSharedState(shared_page_state.SharedPageState): 10 class _IdleSharedState(shared_page_state.SharedPageState):
(...skipping 26 matching lines...) Expand all
37 def Run(self, shared_state): 37 def Run(self, shared_state):
38 time.sleep(self._duration) 38 time.sleep(self._duration)
39 39
40 @property 40 @property
41 def url(self): 41 def url(self):
42 return self._url 42 return self._url
43 43
44 44
45 class IdleStorySet(story.StorySet): 45 class IdleStorySet(story.StorySet):
46 def __init__(self): 46 def __init__(self):
47 super(IdleStorySet, self).__init__() 47 super(IdleStorySet, self).__init__(verify_names=True)
48 self.AddStory(_IdleStory('IdleStory_10s', 10)) 48 self.AddStory(_IdleStory('IdleStory_10s', 10))
49 self.AddStory(_IdleStory('IdleStory_60s', 60)) 49 self.AddStory(_IdleStory('IdleStory_60s', 60))
50 self.AddStory(_IdleStory('IdleStory_120s', 120)) 50 self.AddStory(_IdleStory('IdleStory_120s', 120))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/android_acceptance.py ('k') | tools/perf/page_sets/trivial_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698