Skip to content

Commit

Permalink
Disable Python Garbage Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed May 14, 2021
1 parent 444185c commit 3b1f4c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nightly-benchmark/sitecustomize.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import atexit
import cProfile
import gc
import os
import sys
import uuid


gc.disable()
gc.set_threshold(0)


if not os.path.basename(sys.argv[0]).startswith("gprof2dot"):
p = cProfile.Profile()
p.enable()
Expand Down

0 comments on commit 3b1f4c2

Please sign in to comment.