From 0623a281998ee1d7a62c3f904f76888446cb237a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 6 Mar 2019 13:20:52 +0100 Subject: add allocators to globalvars; kill mysql server on exit; save libc versions of requirements --- src/allocators.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/allocators.py') diff --git a/src/allocators.py b/src/allocators.py index 717c500..26fab5b 100644 --- a/src/allocators.py +++ b/src/allocators.py @@ -3,12 +3,14 @@ import os import subprocess +import src.globalvars + maybe_allocators = ["tcmalloc", "jemalloc", "hoard"] -allocators = {"libc": {"cmd_prefix" : "", - "binary_suffix" : "", - "LD_PRELOAD" : "", - "color" : "C1"}} +src.globalvars.allocators = {"libc": {"cmd_prefix" : "", + "binary_suffix" : "", + "LD_PRELOAD" : "", + "color" : "C1"}} for i, t in enumerate(maybe_allocators): try: @@ -17,7 +19,9 @@ for i, t in enumerate(maybe_allocators): universal_newlines=True).stdout.strip() if path != "": - allocators[t] = {"cmd_prefix": "", "binary_suffix": "", - "LD_PRELOAD": path, "color": "C"+str(i+2)} + src.globalvars.allocators[t] = {"cmd_prefix": "", + "binary_suffix": "", + "LD_PRELOAD": path, + "color": "C"+str(i+2)} except: pass -- cgit v1.2.3