aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-03-05 19:28:26 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-03-05 19:28:26 +0100
commit639cfeb56d8c2928d820e6a3fa4cd86a2f2acb53 (patch)
tree49e93bced2c034c67deaaefd7631f495844540e7 /bench.py
parentb32c14b548e1e0476a4ba5ad5da2c504f3cdd4d9 (diff)
downloadallocbench-639cfeb56d8c2928d820e6a3fa4cd86a2f2acb53.tar.gz
allocbench-639cfeb56d8c2928d820e6a3fa4cd86a2f2acb53.zip
rework rebuild mechanism to use timestamps instead of pickle strings
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bench.py b/bench.py
index 8e4bbb5..eeff86f 100755
--- a/bench.py
+++ b/bench.py
@@ -65,11 +65,12 @@ def main():
allocators_file = os.path.join("build", "allocators", "allocators.py")
if args.allocators or os.path.isfile(allocators_file):
- allocators_files = args.allocators or allocators_file
+ allocators_file = args.allocators or allocators_file
+ src.globalvars.allocators_file = allocators_file
- with open(allocators_files, "r") as f:
+ with open(allocators_file, "r") as f:
print_status("Sourcing allocators definition ...")
- g= {}
+ g = {}
exec(f.read(), g)
src.allocators.allocators = g["allocators"]