Mercurial > hg > truffle
comparison mx/commands.py @ 5118:e5427faad192
Merge
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Mon, 19 Mar 2012 15:51:49 -0700 |
parents | d3f547b08304 |
children | 276e14614531 |
comparison
equal
deleted
inserted
replaced
5117:b6d1ba51d163 | 5118:e5427faad192 |
---|---|
412 else: | 412 else: |
413 assert vm == 'graal', vm | 413 assert vm == 'graal', vm |
414 buildSuffix = 'graal' | 414 buildSuffix = 'graal' |
415 | 415 |
416 for build in builds: | 416 for build in builds: |
417 if build == 'ide-build-target': | |
418 build = os.environ.get('IDE_BUILD_TARGET', 'product') | |
419 if len(build) == 0: | |
420 mx.log('[skipping build from IDE as IDE_BUILD_TARGET environment variable is ""]') | |
421 continue | |
422 | |
417 jdk = _jdk(build, create=True) | 423 jdk = _jdk(build, create=True) |
418 | 424 |
419 vmDir = join(_vmLibDirInJdk(jdk), vm) | 425 vmDir = join(_vmLibDirInJdk(jdk), vm) |
420 if not exists(vmDir): | 426 if not exists(vmDir): |
421 mx.log('Creating VM directory in JDK7: ' + vmDir) | 427 mx.log('Creating VM directory in JDK7: ' + vmDir) |
749 mx.log(' ' + str(total.duration)) | 755 mx.log(' ' + str(total.duration)) |
750 | 756 |
751 def gv(args): | 757 def gv(args): |
752 """run the Graal Visualizer""" | 758 """run the Graal Visualizer""" |
753 with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp: | 759 with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp: |
754 mx.log('[Graal Visualizer output is in ' + fp.name + ']') | 760 mx.log('[Graal Visualizer log is in ' + fp.name + ']') |
761 if not exists(join(_graal_home, 'visualizer', 'build.xml')): | |
762 mx.log('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') | |
755 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run']) | 763 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run']) |
756 | 764 |
765 def igv(args): | |
766 """run the Ideal Graph Visualizer""" | |
767 with open(join(_graal_home, '.ideal_graph_visualizer.log'), 'w') as fp: | |
768 mx.log('[Ideal Graph Visualizer log is in ' + fp.name + ']') | |
769 if not exists(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'nbplatform')): | |
770 mx.log('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') | |
771 mx.run(['ant', '-f', join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml'), '-l', fp.name, 'run']) | |
772 | |
757 def bench(args): | 773 def bench(args): |
758 """run benchmarks and parse their output for results | 774 """run benchmarks and parse their output for results |
759 | 775 |
760 Results are JSON formated : {group : {benchmark : score}}.""" | 776 Results are JSON formated : {group : {benchmark : score}}.""" |
761 resultFile = None | 777 resultFile = None |
874 commands = { | 890 commands = { |
875 'build': [build, '[-options]'], | 891 'build': [build, '[-options]'], |
876 'buildvms': [buildvms, '[-options]'], | 892 'buildvms': [buildvms, '[-options]'], |
877 'clean': [clean, ''], | 893 'clean': [clean, ''], |
878 'hsdis': [hsdis, '[att]'], | 894 'hsdis': [hsdis, '[att]'], |
895 'igv' : [igv, ''], | |
879 'intro': [intro, ''], | 896 'intro': [intro, ''], |
880 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], | 897 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], |
881 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], | 898 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], |
882 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], | 899 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], |
883 'example': [example, '[-v] example names...'], | 900 #'example': [example, '[-v] example names...'], |
884 'gate' : [gate, '[-options]'], | 901 'gate' : [gate, '[-options]'], |
885 'gv' : [gv, ''], | 902 'gv' : [gv, ''], |
886 'bench' : [bench, '[-resultfile file] [all(default)|dacapo|specjvm2008|bootstrap]'], | 903 'bench' : [bench, '[-resultfile file] [all(default)|dacapo|specjvm2008|bootstrap]'], |
887 'unittest' : [unittest, '[filters...]'], | 904 'unittest' : [unittest, '[filters...]'], |
888 'jtt' : [jtt, '[filters...]'], | 905 'jtt' : [jtt, '[filters...]'], |