diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/allocators/chattymalloc.py | 4 | ||||
| -rw-r--r-- | src/allocators/malt.py | 6 |
2 files changed, 9 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") diff --git a/src/allocators/malt.py b/src/allocators/malt.py new file mode 100644 index 0000000..2a5b647 --- /dev/null +++ b/src/allocators/malt.py @@ -0,0 +1,6 @@ +from src.allocator import Allocator + +# result_dir and perm are substituted during Benchmark.run +cmd = "malt -o output:name={{result_dir}}/malt.{{perm}}.%3" + +malt = Allocator("malt", cmd_prefix=cmd) |
