From: Tian Gao Date: Fri, 19 Jul 2024 03:46:24 +0000 (-0700) Subject: gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998) X-Git-Tag: v3.14.0a1~1065 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaf094c09b5b1c33435c60ef49b1cec78c32573c;p=thirdparty%2FPython%2Fcpython.git gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998) --- diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 3dd5f554e06f..8b6906234bdc 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; }