aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-09-14 18:01:55 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-09-14 18:01:55 +0200
commit92f9e30dc210f45880b61d5c6472e631166fa883 (patch)
tree3df362848cdaccd81cf20f6ccad07b7f2739da77 /bench.py
parente6ccf23edfd14767a45d618ceb58c5b40429ecf6 (diff)
downloadallocbench-92f9e30dc210f45880b61d5c6472e631166fa883.tar.gz
allocbench-92f9e30dc210f45880b61d5c6472e631166fa883.zip
add usefull chattymalloc support and --nolibmemusage flag
improve bench.py improve process_stdout hook -> process_output rename perf_cmd -> measure_cmd
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py7
1 files changed, 4 insertions, 3 deletions
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)