python / python/cpython

pystats: Improve with JIT builds

Abierto
#117,121 4 comentarios 0 reacciones 1 asignado Ver en GitHub

@mdboom ya está trabajando en esto.

Desde el 21/3/2024.

performance topic-JIT type-feature
Lenguaje dominante
Python
Estrellas
77.2k
Forks
35.9k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

Feature or enhancement

Proposal:

At the moment, not all pystats work for a JIT build. This is mostly because certain stat collections exist in the Tier 2 interpreter loop, not in the bytecode instructions themselves. The reason for having parity in the stats is not so much that we expect the numbers to be different vs. a Tier 2 run, but because it would be nice to add some JIT-specific stats (e.g. a code size histogram) and the only way to do that now would be to collect stats twice and combine them.

A list of what's missing:

  • traces executed
  • uops executed
  • trace run length histogram
  • uop execution stats

I'm volunteering to do the work, but maybe @brandtbucher could confirm this makes sense?

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-117346

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

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.