python / python/cpython

pystats: Improve with JIT builds

Offen
#117,121 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@mdboom arbeitet bereits daran.

Seit 21.3.2024.

performance topic-JIT type-feature
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
35.9k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.