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

Add -fno-omit-frame-pointer and -mno-omit-leaf-frame-pointer to default compilation flags #995

Open
artizirk opened this issue Dec 20, 2024 · 0 comments

Comments

@artizirk
Copy link

Since Python 3.12 it is possible to profile Python programs using Linux perf profiler when setting PYTHONPERFSUPPORT=1 environment variable. Unfortunately currently built Python containers are missing fno-omit-frame-pointer -mno-omit-leaf-frame-pointer CFLAGS which result in quite useless perf stack traces. It would be great to have those extra CFLAGS added to the image build. That would allow everyone to do low overhead performance profiling on production systems.

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

No branches or pull requests

1 participant