Mercurial > hg > truffle
comparison mx/commands.py @ 4330:d13bfce7b3dd
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 26 Jan 2012 12:23:00 +0100 |
parents | 4aacce9c9cb9 b0aa4a52b89c |
children | 0d661161fa24 |
comparison
equal
deleted
inserted
replaced
4329:4aacce9c9cb9 | 4330:d13bfce7b3dd |
---|---|
367 | 367 |
368 def vm(args, vm='-graal', nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None): | 368 def vm(args, vm='-graal', nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None): |
369 """run the GraalVM""" | 369 """run the GraalVM""" |
370 | 370 |
371 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' | 371 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' |
372 mx.expand_project_in_args(args) | |
372 if mx.java().debug: | 373 if mx.java().debug: |
373 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args | 374 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args |
374 exe = join(_jdk(build), 'bin', mx.exe_suffix('java')) | 375 exe = join(_jdk(build), 'bin', mx.exe_suffix('java')) |
375 return mx.run([exe, vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) | 376 return mx.run([exe, vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) |
376 | 377 |
506 total.abort(str(e)) | 507 total.abort(str(e)) |
507 | 508 |
508 total.stop() | 509 total.stop() |
509 | 510 |
510 def bench(args): | 511 def bench(args): |
511 """run benchmarks and parse their ouput for results | 512 """run benchmarks and parse their output for results |
512 | 513 |
513 Results are JSON formated : {group : {benchmark : score}}.""" | 514 Results are JSON formated : {group : {benchmark : score}}.""" |
514 resultFile = None | 515 resultFile = None |
515 if '-resultfile' in args: | 516 if '-resultfile' in args: |
516 index = args.index('-resultfile') | 517 index = args.index('-resultfile') |