From cb79bac50ca1da1f0f02455bd0e564578ab9ef05 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 24 Aug 2018 22:00:03 +0200 Subject: intruduce new way of handling analyse and cleanup mysql chattymalloc writes now to chattymalloc.data --- bench.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'bench.py') diff --git a/bench.py b/bench.py index d47c6b3..570258a 100755 --- a/bench.py +++ b/bench.py @@ -36,15 +36,16 @@ def main(): if args.load: bench.load() - if args.analyse and bench.name == "mysql": - bench.targets.update(common_targets.analyse_targets) - - print("Preparing", bench.name) + print("Preparing", bench.name, "...") if not bench.prepare(): print("Preparing", bench.name, "failed!") return - print("Running", bench.name) + if args.analyse and hasattr(bench, "analyse") and callable(bench.analyse): + print("Analysing", bench.name, "...") + bench.analyse(verbose=args.verbose) + + print("Running", bench.name, "...") if not bench.run(runs=args.runs, verbose=args.verbose): continue @@ -52,11 +53,11 @@ def main(): bench.save() if not args.nosum: - print("Summarizing", bench.name) + print("Summarizing", bench.name, "...") bench.summary(args.summarydir) if hasattr(bench, "cleanup"): - print("Cleaning after", bench.name) + print("Cleaning up", bench.name, "...") bench.cleanup() if __name__ == "__main__": -- cgit v1.2.3