summaryrefslogtreecommitdiffstats
path: root/Modules/_lsprof.c
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2024-07-19 03:46:24 (GMT)
committerGitHub <noreply@github.com>2024-07-19 03:46:24 (GMT)
commiteaf094c09b5b1c33435c60ef49b1cec78c32573c (patch)
tree890c74195b9d4fe533662dc81e59a47feea92bed /Modules/_lsprof.c
parent7b36b67b1e585c541b418eaa190c56e73f9a2d87 (diff)
downloadcpython-eaf094c09b5b1c33435c60ef49b1cec78c32573c.zip
cpython-eaf094c09b5b1c33435c60ef49b1cec78c32573c.tar.gz
cpython-eaf094c09b5b1c33435c60ef49b1cec78c32573c.tar.bz2
gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998)
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r--Modules/_lsprof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 3dd5f55..8b69062 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;
}