Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 8554:676a85b65481
allow Graal options to be passed to "mx bench"
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 25 Mar 2013 11:18:08 +0100 |
parents | 6ed17512f672 |
children | c7672a325faf |
comparison
equal
deleted
inserted
replaced
8553:ed38b01ce7bc | 8554:676a85b65481 |
---|---|
1023 else: | 1023 else: |
1024 mx.abort('-resultfile must be followed by a file name') | 1024 mx.abort('-resultfile must be followed by a file name') |
1025 vm = _vm | 1025 vm = _vm |
1026 if len(args) is 0: | 1026 if len(args) is 0: |
1027 args = ['all'] | 1027 args = ['all'] |
1028 | 1028 |
1029 vmArgs = [arg for arg in args if arg.startswith('-')] | 1029 vmArgs = [arg for arg in args if arg.startswith('-')] |
1030 | 1030 |
1031 def benchmarks_in_group(group): | 1031 def benchmarks_in_group(group): |
1032 prefix = group + ':' | 1032 prefix = group + ':' |
1033 return [a[len(prefix):] for a in args if a.startswith(prefix)] | 1033 return [a[len(prefix):] for a in args if a.startswith(prefix)] |