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

Side by Side Diff: sky/tools/shelldb

Issue 1101893002: shelldb: Make shelldb analyze also analyze the packages, since that's where most development is act… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from skypy.skyserver import SkyServer 6 from skypy.skyserver import SkyServer
7 import argparse 7 import argparse
8 import json 8 import json
9 import logging 9 import logging
10 import os 10 import os
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 ANALYZER_PATH = 'third_party/dart-sdk/dart-sdk/bin/dartanalyzer' 234 ANALYZER_PATH = 'third_party/dart-sdk/dart-sdk/bin/dartanalyzer'
235 235
236 bindings_path = os.path.join(build_dir, 'gen/sky/bindings') 236 bindings_path = os.path.join(build_dir, 'gen/sky/bindings')
237 sky_builtin_path = \ 237 sky_builtin_path = \
238 os.path.join(SRC_ROOT, 'sky/engine/bindings/builtin.dart') 238 os.path.join(SRC_ROOT, 'sky/engine/bindings/builtin.dart')
239 dart_sky_path = os.path.join(bindings_path, 'dart_sky.dart') 239 dart_sky_path = os.path.join(bindings_path, 'dart_sky.dart')
240 analyzer_args = [ANALYZER_PATH, 240 analyzer_args = [ANALYZER_PATH,
241 "--url-mapping=dart:sky,%s" % dart_sky_path, 241 "--url-mapping=dart:sky,%s" % dart_sky_path,
242 "--url-mapping=dart:sky_builtin,%s" % sky_builtin_path, 242 "--url-mapping=dart:sky_builtin,%s" % sky_builtin_path,
243 "--package-root", dev_packages_root(build_dir), 243 "--package-root", dev_packages_root(build_dir),
244 "--package-warnings",
244 args.app_path 245 args.app_path
245 ] 246 ]
246 return subprocess.call(analyzer_args) 247 return subprocess.call(analyzer_args)
247 248
248 class StartTracing(object): 249 class StartTracing(object):
249 def add_subparser(self, subparsers): 250 def add_subparser(self, subparsers):
250 start_tracing_parser = subparsers.add_parser('start_tracing', 251 start_tracing_parser = subparsers.add_parser('start_tracing',
251 help=('start tracing a running sky instance')) 252 help=('start tracing a running sky instance'))
252 start_tracing_parser.set_defaults(func=self.run) 253 start_tracing_parser.set_defaults(func=self.run)
253 254
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 args = parser.parse_args() 311 args = parser.parse_args()
311 pids = Pids.read_from(PID_FILE_PATH, PID_FILE_KEYS) 312 pids = Pids.read_from(PID_FILE_PATH, PID_FILE_KEYS)
312 exit_code = args.func(args, pids) 313 exit_code = args.func(args, pids)
313 # We could do this with an at-exit handler instead? 314 # We could do this with an at-exit handler instead?
314 pids.write_to(PID_FILE_PATH) 315 pids.write_to(PID_FILE_PATH)
315 sys.exit(exit_code) 316 sys.exit(exit_code)
316 317
317 318
318 if __name__ == '__main__': 319 if __name__ == '__main__':
319 SkyShellRunner().main() 320 SkyShellRunner().main()
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