comparison mx/commands.py @ 5862:44eb34b54526

removed the unreliable 'intro' command
author Doug Simon <doug.simon@oracle.com>
date Fri, 20 Jul 2012 12:54:02 +0200
parents 488864d5069a
children 576460f7e740
comparison
equal deleted inserted replaced
5861:1cb45c7dba55 5862:44eb34b54526
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.
989 'buildvms': [buildvms, '[-options]'], 977 'buildvms': [buildvms, '[-options]'],
990 'clean': [clean, ''], 978 'clean': [clean, ''],
991 'hsdis': [hsdis, '[att]'], 979 'hsdis': [hsdis, '[att]'],
992 'hcfdis': [hcfdis, ''], 980 'hcfdis': [hcfdis, ''],
993 'igv' : [igv, ''], 981 'igv' : [igv, ''],
994 'intro': [intro, ''],
995 'jdkhome': [jdkhome, ''], 982 'jdkhome': [jdkhome, ''],
996 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], 983 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'],
997 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], 984 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'],
998 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], 985 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'],
999 #'example': [example, '[-v] example names...'], 986 #'example': [example, '[-v] example names...'],