conda-forge / conda-forge/python-feedstock

Python build with frame pointers enabled?

Ouverte
#688 1 commentaire 4 réactions 0 personnes assignées Voir sur GitHub
question
Langage dominant
Shell
Étoiles
47
Forks
112
Merge moyen
2 j 9 h
PR mergées (30 j)
18

Description

### Comment:

For profiling Python applications, using [the Linux perf support in Python 3.12](https://docs.python.org/3/howto/perf_profiling.html), 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!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.