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

Side by Side Diff: tools/perf/contrib/cluster_telemetry/multipage_skpicture_printer.py

Issue 2958093002: [Perf] Update references to telemetry.core.discover (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 contrib.cluster_telemetry import ct_benchmarks_util 7 from contrib.cluster_telemetry import ct_benchmarks_util
8 from contrib.cluster_telemetry import page_set 8 from contrib.cluster_telemetry import page_set
9 from contrib.cluster_telemetry import repaint_helpers 9 from contrib.cluster_telemetry import repaint_helpers
10 10
11 from telemetry.core import discover
12 from telemetry import story 11 from telemetry import story
13 12
13 from py_utils import discover
14
14 from measurements import multipage_skpicture_printer 15 from measurements import multipage_skpicture_printer
15 16
16 17
17 def _MatchPageSetName(story_set_name, story_set_base_dir): 18 def _MatchPageSetName(story_set_name, story_set_base_dir):
18 story_sets = discover.DiscoverClasses(story_set_base_dir, story_set_base_dir, 19 story_sets = discover.DiscoverClasses(story_set_base_dir, story_set_base_dir,
19 story.StorySet).values() 20 story.StorySet).values()
20 for s in story_sets: 21 for s in story_sets:
21 if story_set_name == s.Name(): 22 if story_set_name == s.Name():
22 return s 23 return s
23 return None 24 return None
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 def CreateStorySet(self, options): 87 def CreateStorySet(self, options):
87 return page_set.CTPageSet( 88 return page_set.CTPageSet(
88 options.urls_list, options.user_agent, options.archive_data_file, 89 options.urls_list, options.user_agent, options.archive_data_file,
89 run_page_interaction_callback=repaint_helpers.WaitThenRepaint) 90 run_page_interaction_callback=repaint_helpers.WaitThenRepaint)
90 91
91 def GetExpectations(self): 92 def GetExpectations(self):
92 class StoryExpectations(story.expectations.StoryExpectations): 93 class StoryExpectations(story.expectations.StoryExpectations):
93 def SetExpectations(self): 94 def SetExpectations(self):
94 pass # Not tests disabled. 95 pass # Not tests disabled.
95 return StoryExpectations() 96 return StoryExpectations()
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/system_health_unittest.py ('k') | tools/perf/contrib/cluster_telemetry/skpicture_printer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698