From 49d4d763ed022b16792b102a979a8bce0422fe89 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Fri, 14 May 2021 10:36:56 -0700 Subject: [PATCH] Disable Python Garbage Collection --- nightly-benchmark/sitecustomize.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nightly-benchmark/sitecustomize.py b/nightly-benchmark/sitecustomize.py index ecf7e0c..7e0a836 100644 --- a/nightly-benchmark/sitecustomize.py +++ b/nightly-benchmark/sitecustomize.py @@ -1,9 +1,14 @@ import atexit import cProfile +import gc import os import sys import uuid + +gc.disable() + + if not os.path.basename(sys.argv[0]).startswith("gprof2dot"): p = cProfile.Profile() p.enable()