aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbench.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench.py b/bench.py
index d2cf8e3..873e597 100755
--- a/bench.py
+++ b/bench.py
@@ -182,6 +182,8 @@ def main():
analyze_alloc = "chattymalloc"
old_allocs = bench.allocators
+ old_measure_cmd = bench.measure_cmd
+ bench.measure_cmd = ""
analyze_alloc_module = importlib.import_module(f"src.allocators.{analyze_alloc}")
bench.allocators = {analyze_alloc: getattr(analyze_alloc_module, analyze_alloc).build()}
@@ -191,6 +193,8 @@ def main():
print_error(traceback.format_exc())
print_error("Skipping analysis of", bench, "!")
+ bench.measure_cmd = old_measure_cmd
+
# Remove results for analyze_alloc
if analyze_alloc in bench.results:
del bench.results[analyze_alloc]