aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/chattymalloc.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-22 20:05:48 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-22 20:30:10 +0200
commit2364ca102a265b713f423e7c54ccd118bbecd86a (patch)
treed7618591e53f26eb9d280f1e80cabe03f7534ba5 /src/allocators/chattymalloc.py
parenta799b6e3996288ec9fb295bef5a5c4407f8da24c (diff)
downloadallocbench-2364ca102a265b713f423e7c54ccd118bbecd86a.tar.gz
allocbench-2364ca102a265b713f423e7c54ccd118bbecd86a.zip
support chattymalloc as analyze fallback if malt is not available
bench.py saves the benchmark specific result directory in the object member "result_dir". This member is used by the analyze allocators to know where to write the trace files to.
Diffstat (limited to 'src/allocators/chattymalloc.py')
-rw-r--r--src/allocators/chattymalloc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/allocators/chattymalloc.py b/src/allocators/chattymalloc.py
index 3079667..6688f51 100644
--- a/src/allocators/chattymalloc.py
+++ b/src/allocators/chattymalloc.py
@@ -1,4 +1,6 @@
import os
from src.allocator import Allocator, builddir
-chattymalloc = Allocator("chattymalloc", LD_PRELOAD=os.path.join(builddir, "chattymalloc.so"), color="xkcd:black")
+chattymalloc = Allocator("chattymalloc",
+ LD_PRELOAD=os.path.join(builddir, "chattymalloc.so"),
+ cmd_prefix="env CHATTYMALLOC_FILE={{result_dir}}/chatty_{{perm}}.txt")