Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 6340:74560fdffd51
Add a draft longtests command to mc's commands
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 07 Sep 2012 17:11:40 +0200 |
parents | 0a0d0dfd83bc |
children | 75f130f2b30f |
comparison
equal
deleted
inserted
replaced
6339:270fc8772a10 | 6340:74560fdffd51 |
---|---|
812 mx.log('Gate task times:') | 812 mx.log('Gate task times:') |
813 for t in tasks: | 813 for t in tasks: |
814 mx.log(' ' + str(t.duration) + '\t' + t.title) | 814 mx.log(' ' + str(t.duration) + '\t' + t.title) |
815 mx.log(' =======') | 815 mx.log(' =======') |
816 mx.log(' ' + str(total.duration)) | 816 mx.log(' ' + str(total.duration)) |
817 | |
818 def deoptalot(args): | |
819 """Bootstrap a fastdebug Graal VM with DeoptimizeALot and VerifyOops on | |
820 | |
821 If the first argument is a number, the process will be repeated | |
822 this number of times. All other arguments are passed to the VM.""" | |
823 count = 1 | |
824 if len(args) > 0 and args[0].isdigit(): | |
825 count = int(args[0]) | |
826 del args[0] | |
827 | |
828 for n in range(count): | |
829 if not vm(['-XX:+DeoptimizeALot', '-XX:+VerifyOops'] + args + ['-version'], vmbuild='fastdebug') == 0: | |
830 mx.abort("Failed") | |
831 | |
832 def longtests(args): | |
833 | |
834 deoptalot(['15', '-Xmx48m']) | |
835 | |
836 dacapo(['100', 'eclipse', '-esa']) | |
817 | 837 |
818 def gv(args): | 838 def gv(args): |
819 """run the Graal Visualizer""" | 839 """run the Graal Visualizer""" |
820 with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp: | 840 with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp: |
821 mx.log('[Graal Visualizer log is in ' + fp.name + ']') | 841 mx.log('[Graal Visualizer log is in ' + fp.name + ']') |
999 'unittest' : [unittest, '[filters...]'], | 1019 'unittest' : [unittest, '[filters...]'], |
1000 'jacocoreport' : [jacocoreport, '[output directory]'], | 1020 'jacocoreport' : [jacocoreport, '[output directory]'], |
1001 'site' : [site, '[-options]'], | 1021 'site' : [site, '[-options]'], |
1002 'vm': [vm, '[-options] class [args...]'], | 1022 'vm': [vm, '[-options] class [args...]'], |
1003 'vmg': [vmg, '[-options] class [args...]'], | 1023 'vmg': [vmg, '[-options] class [args...]'], |
1004 'vmfg': [vmfg, '[-options] class [args...]'] | 1024 'vmfg': [vmfg, '[-options] class [args...]'], |
1025 'deoptalot' : [deoptalot, '[n]'], | |
1026 'longtests' : [longtests, ''] | |
1005 } | 1027 } |
1006 | 1028 |
1007 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) | 1029 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) |
1008 | 1030 |
1009 if (_vmSourcesAvailable): | 1031 if (_vmSourcesAvailable): |