Closed alexmojaki closed 5 years ago
Tracer currently holds on to every frame it has traced, including all its local variables (not just their reprs). Try this script:
Tracer
import pysnooper @pysnooper.snoop() def foo(): lst = list(range(1000)) while 1: foo()
and check top. The memory usage skyrockets.
top
Good catch!
Tracer
currently holds on to every frame it has traced, including all its local variables (not just their reprs). Try this script:and check
top
. The memory usage skyrockets.