From 92f9e30dc210f45880b61d5c6472e631166fa883 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 14 Sep 2018 18:01:55 +0200 Subject: add usefull chattymalloc support and --nolibmemusage flag improve bench.py improve process_stdout hook -> process_output rename perf_cmd -> measure_cmd --- bench.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bench.py') diff --git a/bench.py b/bench.py index b661a56..82b640d 100755 --- a/bench.py +++ b/bench.py @@ -22,6 +22,7 @@ parser.add_argument("-b", "--benchmarks", help="benchmarks to run", nargs='+') parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_true') parser.add_argument("-sd", "--summarydir", help="directory where all plots and the summary go", type=str) parser.add_argument("-a", "--analyse", help="collect allocation sizes", action='store_true') +parser.add_argument("--nolibmemusage", help="don't use libmemusage to analyse", action='store_true') def main(): args = parser.parse_args() @@ -44,16 +45,16 @@ def main(): if args.analyse and hasattr(bench, "analyse") and callable(bench.analyse): print("Analysing", bench.name, "...") - bench.analyse(verbose=args.verbose) + analyse_args = {"nolibmemusage": args.nolibmemusage, "verbose": args.verbose} + bench.analyse(**analyse_args) - print("Running", bench.name, "...") if not bench.run(runs=args.runs, verbose=args.verbose): continue if args.save: bench.save() - if not args.nosum: + if not args.nosum and not (args.runs < 1 and not args.load): print("Summarizing", bench.name, "...") bench.summary(args.summarydir) -- cgit v1.2.3