From 77fba735aeecf69997034bfb33611489b85ba3b4 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 24 Aug 2019 17:52:47 +0200 Subject: plot traces produced by chattymalloc --- bench.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bench.py') diff --git a/bench.py b/bench.py index a1aab65..2fb2355 100755 --- a/bench.py +++ b/bench.py @@ -10,6 +10,7 @@ import subprocess import sys import traceback +import src.chattyparser import src.facter import src.globalvars from src.util import * @@ -242,7 +243,12 @@ def main(): # restore allocs bench.allocators = old_allocs - print(bench.results) + + if analyse_alloc == "chattymalloc": + print_info("Plotting chattymalloc histograms") + for f in os.listdir(bench.result_dir): + if f.startswith("chatty_") and f.endswith(".txt"): + chattyparser.plot(f) if args.runs > 0: print_status("Running", bench.name, "...") -- cgit v1.2.3