grafana / grafana/pyroscope-python

pyspy: sampler thread shutdown blocks until next sample

Aperta
#115 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
4
Fork
2
Merge medio
2g 4h
PR unite (30g)
5

Descrizione

looks like this code
```
let sampler_output = sampler.take_while(|_x| running.load(Ordering::Relaxed));
```
blocks until the next sample (up to 10ms with default config)
We should consider exposing the channel so that we don't wait for 10ms

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start at the sampler.take_while closure shown in the issue and read the sampler shutdown path, focusing on how the running flag interacts with waiting for the next sample. Confirm the default 10ms wait, then verify that stopping the sampler completes without unnecessarily waiting for another sample.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
performance, tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.