https://github.com/python/cpython/commit/0403cb41bfc0c112b51d668c44532132893cd311
commit: 0403cb41bfc0c112b51d668c44532132893cd311
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: gaogaotiantian <[email protected]>
date: 2024-07-19T04:05:08Z
summary:

[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 eaf094c09b5b1c33435c60ef49b1cec78c32573c)

Co-authored-by: Tian Gao <[email protected]>

files:
M Modules/_lsprof.c

diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 79b95f9f152615..2c82b18c0e18d7 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -852,6 +852,7 @@ static int
 profiler_traverse(ProfilerObject *op, visitproc visit, void *arg)
 {
     Py_VISIT(Py_TYPE(op));
+    Py_VISIT(op->externalTimer);
     return 0;
 }
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to