From 0403cb41bfc0c112b51d668c44532132893cd311 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 19 Jul 2024 06:05:08 +0200 Subject: [PATCH] [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 --- Modules/_lsprof.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 79b95f9f152..2c82b18c0e1 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; }