Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python build with frame pointers enabled? #688

Open
sk1p opened this issue Apr 24, 2024 · 1 comment
Open

Python build with frame pointers enabled? #688

sk1p opened this issue Apr 24, 2024 · 1 comment
Labels

Comments

@sk1p
Copy link

sk1p commented Apr 24, 2024

Comment:

For profiling Python applications, using the Linux perf support in Python 3.12, it would be very helpful to have a build of Python available which has frame pointers enabled. For some additional context: https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html

As I'm using conda most of the time to install different Python versions, it would be very nice to have Python w/ frame pointers directly available as a conda package. Is this maybe already available somewhere, or is this something one can realistically build locally? Would that just be a matter of patching recipe/build_base.sh to include -fno-omit-frame-pointer and -mno-omit-leaf-frame-pointer in the CFLAGS and running build-locally.py? Thanks!

@sk1p sk1p added the question label Apr 24, 2024
@jjerphan
Copy link
Member

I also think it would be worth having a build of CPython (and more generally conda-forge) with frame pointers enabled.

[...] is this something one can realistically build locally? Would that just be a matter of patching recipe/build_base.sh to include -fno-omit-frame-pointer and -mno-omit-leaf-frame-pointer in the CFLAGS and running build-locally.py?

Yes, and yes (this should be sufficient).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants