conda-forge / conda-forge/python-feedstock

Python build with frame pointers enabled?

Abierto
#688 1 comentario 4 reacciones 0 asignados Ver en GitHub
question
Lenguaje dominante
Shell
Estrellas
47
Forks
112
Merge medio
2 d 9 h
PR fusionados (30 d)
18

Descripción

### 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!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.