find python frames without probing (possibly optimized-out by LTO) _PyEval_EvalFrameDefault by mattip · Pull Request #276 · vmprof/vmprof-python · GitHub
Skip to content

find python frames without probing (possibly optimized-out by LTO) _PyEval_EvalFrameDefault - #276

Merged
mattip merged 2 commits into
vmprof:masterfrom
mattip:discover-python-frames
Sep 14, 2026
Merged

find python frames without probing (possibly optimized-out by LTO) _PyEval_EvalFrameDefault#276
mattip merged 2 commits into
vmprof:masterfrom
mattip:discover-python-frames

Conversation

@mattip

@mattip mattip commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Some CPython builds use LTO which can split or refactor calls to _PyEval_EvalFrameDefault, causing IS_VMPROF_EVAL to fail. This is more prevalent on recent builds (3,13 and up). Probe differently: at eval time determine the address of python frames.

@mattip

mattip commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

@mattip
mattip merged commit 00cb6e3 into vmprof:master Sep 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant