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

Side by Side Diff: tools/perf/core/find_dependencies.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
« no previous file with comments | « tools/perf/core/benchmark_finders.py ('k') | tools/perf/core/perf_data_generator.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 import fnmatch 5 import fnmatch
6 import imp 6 import imp
7 import logging 7 import logging
8 import optparse 8 import optparse
9 import os 9 import os
10 import sys 10 import sys
11 import zipfile 11 import zipfile
12 12
13 from telemetry import benchmark 13 from telemetry import benchmark
14 from telemetry.core import discover
15 from telemetry.internal.util import command_line 14 from telemetry.internal.util import command_line
16 from telemetry.internal.util import path 15 from telemetry.internal.util import path
17 from telemetry.internal.util import path_set 16 from telemetry.internal.util import path_set
18 17
18 from py_utils import discover
19
19 try: 20 try:
20 from modulegraph import modulegraph # pylint: disable=import-error 21 from modulegraph import modulegraph # pylint: disable=import-error
21 except ImportError as err: 22 except ImportError as err:
22 modulegraph = None 23 modulegraph = None
23 import_error = err 24 import_error = err
24 25
25 from core import bootstrap 26 from core import bootstrap
26 from core import path_util 27 from core import path_util
27 28
28 DEPS_FILE = 'bootstrap_deps' 29 DEPS_FILE = 'bootstrap_deps'
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 244
244 def Run(self, args): 245 def Run(self, args):
245 target_paths = args.positional_args 246 target_paths = args.positional_args
246 dependencies = FindDependencies(target_paths, args) 247 dependencies = FindDependencies(target_paths, args)
247 if args.zip: 248 if args.zip:
248 ZipDependencies(target_paths, dependencies, args) 249 ZipDependencies(target_paths, dependencies, args)
249 print 'Zip archive written to %s.' % args.zip 250 print 'Zip archive written to %s.' % args.zip
250 else: 251 else:
251 print '\n'.join(sorted(dependencies)) 252 print '\n'.join(sorted(dependencies))
252 return 0 253 return 0
OLDNEW
« no previous file with comments | « tools/perf/core/benchmark_finders.py ('k') | tools/perf/core/perf_data_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698