aboutsummaryrefslogtreecommitdiff
path: root/common_targets.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-08-18 14:53:31 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-08-18 14:53:31 +0200
commit867e0de8170a1a13696391883947e426520ae134 (patch)
tree17fd4a97d9ea62c81ce1018a971d70f714dce860 /common_targets.py
parent0e701f823c97e7c68da34ca19f544b47bb066824 (diff)
downloadallocbench-867e0de8170a1a13696391883947e426520ae134.tar.gz
allocbench-867e0de8170a1a13696391883947e426520ae134.zip
make targets into directories and add a color attribute
Diffstat (limited to 'common_targets.py')
-rw-r--r--common_targets.py37
1 files changed, 31 insertions, 6 deletions
diff --git a/common_targets.py b/common_targets.py
index 137f34f..c17ab70 100644
--- a/common_targets.py
+++ b/common_targets.py
@@ -1,8 +1,33 @@
-common_targets = {"klmalloc" : ("", "targets/libklmalloc.so"),
- "libc" : ("", ""), # libc
- "tcmalloc" : ("", "targets/libtcmalloc.so"),
- "jemalloc" : ("", "targets/libjemalloc.so"),
- "hoard" : ("", "targets/libhoard.so")
+common_targets = {"klmalloc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libklmalloc.so",
+ "color" : "C0"
+ },
+ "glibc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "",
+ "color" : "C1"
+ },
+ "tcmalloc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libtcmalloc.so",
+ "color" : "C2"
+ },
+ "jemalloc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libjemalloc.so",
+ "color" : "C3"
+ },
+ "hoard" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libhoard.so",
+ "color" : "C4"
+ },
}
-analyse_targets = {"chattymalloc" : ("", "build/chattymalloc.so")}
+analyse_targets = {"chattymalloc" : {"LD_PRELOAD" : "build/chattymalloc.so"}}