gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998)

This commit is contained in:
Tian Gao 2024-07-18 20:46:24 -07:00 committed by GitHub
parent 7b36b67b1e
commit eaf094c09b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -856,6 +856,7 @@ static int
profiler_traverse(ProfilerObject *op, visitproc visit, void *arg) profiler_traverse(ProfilerObject *op, visitproc visit, void *arg)
{ {
Py_VISIT(Py_TYPE(op)); Py_VISIT(Py_TYPE(op));
Py_VISIT(op->externalTimer);
return 0; return 0;
} }