aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-24 17:52:47 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-24 17:52:47 +0200
commit77fba735aeecf69997034bfb33611489b85ba3b4 (patch)
tree468f041b93b8df68983a212190f7f580dddcd231
parent3091b6844c7738b365a71095eb460add2f942f01 (diff)
downloadallocbench-77fba735aeecf69997034bfb33611489b85ba3b4.tar.gz
allocbench-77fba735aeecf69997034bfb33611489b85ba3b4.zip
plot traces produced by chattymalloc
-rwxr-xr-xbench.py8
1 files changed, 7 insertions, 1 deletions
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, "...")