grafana / grafana/pyroscope-python

pyspy: sampler thread shutdown blocks until next sample

未关闭
#115 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
4
派生
2
平均合并
2 天 4 小时
30 天内合并 PR
5

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 issue 中显示的 sampler.take_while 闭包开始,阅读 sampler 的关闭路径,重点关注 running 标志如何与等待下一个 sample 进行交互。确认默认等待时间为 10ms,然后验证停止 sampler 时能够完成,而无需不必要地等待另一个 sample。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
performance, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。