Mercurial > hg > truffle
comparison mx/commands.py @ 5871:576460f7e740
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 20 Jul 2012 14:40:37 +0200 |
parents | d84a26dc32f5 44eb34b54526 |
children | 000fb0550afe |
comparison
equal
deleted
inserted
replaced
5870:d84a26dc32f5 | 5871:576460f7e740 |
---|---|
218 if not sanitycheck.getDacapo(test, n, dacapoArgs).test(vm, opts=vmOpts): | 218 if not sanitycheck.getDacapo(test, n, dacapoArgs).test(vm, opts=vmOpts): |
219 failed.append(test) | 219 failed.append(test) |
220 | 220 |
221 if len(failed) != 0: | 221 if len(failed) != 0: |
222 mx.abort('DaCapo failures: ' + str(failed)) | 222 mx.abort('DaCapo failures: ' + str(failed)) |
223 | |
224 def intro(args): | |
225 """run a simple program and visualize its compilation in the Graal Visualizer""" | |
226 # Start the visualizer in a separate thread | |
227 t = Thread(target=gv, args=([[]])) | |
228 t.start() | |
229 | |
230 # Give visualizer time to start | |
231 mx.log('Waiting 5 seconds for visualizer to start') | |
232 time.sleep(5) | |
233 | |
234 vm(['-G:Dump=', '-G:MethodFilter=greet', '-Xcomp', '-XX:CompileOnly=HelloWorld::greet', '-cp', mx.classpath('com.oracle.graal.examples')] + args + ['examples.HelloWorld']) | |
235 | 223 |
236 def scaladacapo(args): | 224 def scaladacapo(args): |
237 """run one or all Scala DaCapo benchmarks | 225 """run one or all Scala DaCapo benchmarks |
238 | 226 |
239 Scala DaCapo options are distinguished from VM options by a '@' prefix. | 227 Scala DaCapo options are distinguished from VM options by a '@' prefix. |
991 'buildvms': [buildvms, '[-options]'], | 979 'buildvms': [buildvms, '[-options]'], |
992 'clean': [clean, ''], | 980 'clean': [clean, ''], |
993 'hsdis': [hsdis, '[att]'], | 981 'hsdis': [hsdis, '[att]'], |
994 'hcfdis': [hcfdis, ''], | 982 'hcfdis': [hcfdis, ''], |
995 'igv' : [igv, ''], | 983 'igv' : [igv, ''], |
996 'intro': [intro, ''], | |
997 'jdkhome': [jdkhome, ''], | 984 'jdkhome': [jdkhome, ''], |
998 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], | 985 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], |
999 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], | 986 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], |
1000 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], | 987 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], |
1001 #'example': [example, '[-v] example names...'], | 988 #'example': [example, '[-v] example names...'], |