grafana / grafana/pyroscope-python
pyspy: sampler thread shutdown blocks until next sample
- Vorherrschende Sprache
- Rust
- Sterne
- 4
- Forks
- 2
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- performance, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100