summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2023-06-29 23:14:09 (GMT)
committerGitHub <noreply@github.com>2023-06-29 23:14:09 (GMT)
commitcea9d4ea82abcb2c6f1d83a2fe819859da4bbda4 (patch)
treefe006373dff5f283de8d29f279d51e371d9c52de /Modules
parent7b2d94d87513967b357c658c6e7e1b8c8d02487d (diff)
downloadcpython-cea9d4ea82abcb2c6f1d83a2fe819859da4bbda4.zip
cpython-cea9d4ea82abcb2c6f1d83a2fe819859da4bbda4.tar.gz
cpython-cea9d4ea82abcb2c6f1d83a2fe819859da4bbda4.tar.bz2
GH-106152: Add PY_THROW event to cProfile (GH-106161)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_lsprof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 1c84f66..257de43 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -678,6 +678,7 @@ static const struct {
} callback_table[] = {
{PY_MONITORING_EVENT_PY_START, "_pystart_callback"},
{PY_MONITORING_EVENT_PY_RESUME, "_pystart_callback"},
+ {PY_MONITORING_EVENT_PY_THROW, "_pystart_callback"},
{PY_MONITORING_EVENT_PY_RETURN, "_pyreturn_callback"},
{PY_MONITORING_EVENT_PY_YIELD, "_pyreturn_callback"},
{PY_MONITORING_EVENT_PY_UNWIND, "_pyreturn_callback"},