summaryrefslogtreecommitdiff
path: root/contrib/analyze_brprob_spec.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-12-14 11:30:24 +0100
committerMartin Liska <marxin@gcc.gnu.org>2016-12-14 10:30:24 +0000
commitca3b6071596b4c48d7b4c3eaf624dad449efd207 (patch)
tree2cf585c86cf9acc0da3b74b8e326afe0cacf82ce /contrib/analyze_brprob_spec.py
parent998f4f30ea96b8eba79af8c317b8a250a74cab0c (diff)
downloadgcc-ca3b6071596b4c48d7b4c3eaf624dad449efd207.tar.gz
Enhance analyze_brprob script
* analyze_brprob.py: Add new column to output and new sorting option. Fix coding style to not exceed 80 characters. * analyze_brprob_spec.py: Add new sorting option. Fix coding style to not exceed 80 characters. From-SVN: r243640
Diffstat (limited to 'contrib/analyze_brprob_spec.py')
-rwxr-xr-xcontrib/analyze_brprob_spec.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/analyze_brprob_spec.py b/contrib/analyze_brprob_spec.py
index a28eaac39d5..908db3960dc 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()