`_remote_debugging`: `RemoteUnwinder(..., jit=True)`
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Feature or enhancement
Proposal:
:)
The idea here is to expose JIT internals a bit more in the Tachyon profiler.
The questions that could be answered trivially:
- Is JIT actually used? How often?
- Which executor is hot?
- What change made the largest difference (
diff_flamegraph), in terms of % spent in JIT? Per line?
A bit harder:
- Which UOPs actually eat time?
- Which stensils are good?
- What guards or deopts are bad?
- What is the trace shape?
The very minimal change that I'm thinking about here is just adding --jit flag (active for --jsonl and maybe for --live but it's a catnip), and adding JitInfo to ThreadInfo.
That's how it could look:
JitInfo(
executor_id,
flags
)
This will requires extending debug offsets, obviously.
We could potentially expose native_pc, native_offset, uop_index, exit_index etc. The question would be how to expose metadata for it without balooning JitInfo, and how far we can get without blocking and native unwinding. :)
I'm pretty much open to any other ideas.
There will be definitely some performance impact (more VM reads), but hidden behind the --enable-experimental-jit flag should be bearable, and we could be more playful, going back and forth.
If you think it makes sense, I'd be willing to take a shot, but this will take multiple PRs.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando _remote_debugging, RemoteUnwinder(..., jit=True) e il flusso esistente di ThreadInfo. Confronta il comportamento proposto di --jit per --jsonl e possibilmente --live, quindi esamina come vengono gestiti gli offset di debug. Il lavoro sarà completo quando sarà stato definito l’ambito per esporre JitInfo e i relativi metadati dietro --enable-experimental-jit, tenendo conto dell’impatto sulle prestazioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- devtools, performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Tranquilla
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100