From eaf094c09b5b1c33435c60ef49b1cec78c32573c Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Thu, 18 Jul 2024 20:46:24 -0700 Subject: gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998) --- Modules/_lsprof.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 3dd5f55..8b69062 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -856,6 +856,7 @@ static int profiler_traverse(ProfilerObject *op, visitproc visit, void *arg) { Py_VISIT(Py_TYPE(op)); + Py_VISIT(op->externalTimer); return 0; } -- cgit v0.12