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

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

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 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 | « tools/perf/benchmarks/session_restore.py ('k') | tools/perf/benchmarks/smoothness.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 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 measurements import skpicture_printer
6 from telemetry import benchmark 5 from telemetry import benchmark
7 from telemetry.core import discover 6 from telemetry.core import discover
8 from telemetry.page import page_set 7 from telemetry.page import page_set
9 8
9 from measurements import skpicture_printer
10
10 11
11 def _MatchPageSetName(page_set_name, page_set_base_dir): 12 def _MatchPageSetName(page_set_name, page_set_base_dir):
12 page_sets = [] 13 page_sets = []
13 page_sets += discover.DiscoverClasses(page_set_base_dir, page_set_base_dir, 14 page_sets += discover.DiscoverClasses(page_set_base_dir, page_set_base_dir,
14 page_set.PageSet, 15 page_set.PageSet,
15 index_by_class_name=True).values() 16 index_by_class_name=True).values()
16 for p in page_sets: 17 for p in page_sets:
17 if page_set_name == p.Name(): 18 if page_set_name == p.Name():
18 return p 19 return p
19 return None 20 return None
(...skipping 20 matching lines...) Expand all
40 def Name(cls): 41 def Name(cls):
41 return 'skpicture_printer' 42 return 'skpicture_printer'
42 43
43 def CreatePageTest(self, options): 44 def CreatePageTest(self, options):
44 return skpicture_printer.SkpicturePrinter(options.skp_outdir) 45 return skpicture_printer.SkpicturePrinter(options.skp_outdir)
45 46
46 def CreatePageSet(self, options): 47 def CreatePageSet(self, options):
47 page_set_class = _MatchPageSetName(options.page_set_name, 48 page_set_class = _MatchPageSetName(options.page_set_name,
48 options.page_set_base_dir) 49 options.page_set_base_dir)
49 return page_set_class() 50 return page_set_class()
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/session_restore.py ('k') | tools/perf/benchmarks/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698