diff options
Diffstat (limited to 'contrib/analyze_brprob_spec.py')
-rwxr-xr-x | contrib/analyze_brprob_spec.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/analyze_brprob_spec.py b/contrib/analyze_brprob_spec.py index a28eaac39d51..908db3960dc7 100755 --- a/contrib/analyze_brprob_spec.py +++ b/contrib/analyze_brprob_spec.py @@ -25,8 +25,11 @@ import argparse script_location = os.path.realpath(__file__) parser = argparse.ArgumentParser() -parser.add_argument('location', metavar = 'dump_file', help = 'Location with SPEC benchmarks') -parser.add_argument('-s', '--sorting', dest = 'sorting', choices = ['branches', 'hitrate', 'coverage'], default = 'branches') +parser.add_argument('location', metavar = 'dump_file', + help = 'Location with SPEC benchmarks') +parser.add_argument('-s', '--sorting', dest = 'sorting', + choices = ['branches', 'branch-hitrate', 'hitrate', 'coverage', 'name'], + default = 'branches') args = parser.parse_args() @@ -51,7 +54,8 @@ for b in sorted(benchmarks): print() print(b) sys.stdout.flush() - p = [os.path.join(os.path.dirname(script_location), 'analyze_brprob.py'), temp.name, '--sorting', args.sorting] + p = [os.path.join(os.path.dirname(script_location), 'analyze_brprob.py'), + temp.name, '--sorting', args.sorting] p = subprocess.check_call(p) sys.stdout.flush() |