aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-05-05 14:35:43 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-05-05 14:35:43 +0200
commit0bc23006f6f73b6284239de7fbef61d78884a656 (patch)
tree53295c97c6fcda4df69e400fdd06aaa566401ace
parent879e8cd0130754b0f0bf50eeeca18859095bd581 (diff)
downloadallocbench-0bc23006f6f73b6284239de7fbef61d78884a656.tar.gz
allocbench-0bc23006f6f73b6284239de7fbef61d78884a656.zip
analyze: build allocators before setting globally LD_PRELOAD
-rwxr-xr-xsrc/analyse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyse.py b/src/analyse.py
index 5bbaf3c..bd08c98 100755
--- a/src/analyse.py
+++ b/src/analyse.py
@@ -87,6 +87,9 @@ def analyze_bench(bench):
def analyze_allocators(bench, allocators):
"""Analyse a single benchmark for each allocator in allocators"""
+ # build analyzse allocator before globaly setting LD_PRELOAD
+ build_analyze_alloc()
+
for name, alloc in allocators.items():
print_status(f"Analysing {name} during {bench} ...")
os.environ["LD_PRELOAD"] = alloc["LD_PRELOAD"]