[3.12] gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998) (#122001)

gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998)
(cherry picked from commit eaf094c09b)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
This commit is contained in:
Miss Islington (bot) 2024-07-19 06:05:08 +02:00 committed by GitHub
parent 001584da03
commit 0403cb41bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -852,6 +852,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;
} }