[3.12] gh-122029: Log call events in sys.setprofile when it's a metho… · python/cpython@257c413 · GitHub
Skip to content

Commit 257c413

Browse files
[3.12] gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072) (GH-122206)
gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072) Log call events in sys.setprofile when it is a method with a C function. (cherry picked from commit e91ef13) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
1 parent d7c67e0 commit 257c413

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lib/test/test_sys_setprofile.py

Lines changed: 14 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Emit ``c_call`` events in :func:`sys.setprofile` when a ``PyMethodObject`` pointing to a ``PyCFunction`` is called.

Python/legacy_tracing.c

Lines changed: 13 additions & 0 deletions

0 commit comments

Comments
 (0)