Skip to content

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantian gaogaotiantian commented Jun 27, 2023

PY_MONITORING_EVENT_PY_THROW is missing which caused incorrect profiling for generators that are garbage collected(and maybe in other cases).

@brandtbucher brandtbucher added type-bug An unexpected behavior, bug, or error extension-modules C modules in the Modules dir labels Jun 29, 2023
@brandtbucher
Copy link
Member

Looks good, thanks @gaogaotiantian!

@brandtbucher brandtbucher merged commit cea9d4e into python:main Jun 29, 2023
@miss-islington
Copy link
Contributor

Thanks @gaogaotiantian for the PR, and @brandtbucher for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link

GH-106256 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Jun 29, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 29, 2023
(cherry picked from commit cea9d4e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
@gaogaotiantian gaogaotiantian deleted the fix-cprofile-throw branch June 29, 2023 23:16
brandtbucher pushed a commit that referenced this pull request Jun 29, 2023
GH-106152: Add PY_THROW event to cProfile (GH-106161)
(cherry picked from commit cea9d4e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants