Install any skill in seconds. Free to start, no credit card required.
Get Started Free →yangge521/perf-monitor
性能监控与瓶颈分析工具,实时监控 FPS/延迟/显存/GPU 利用率,自动定位推理瓶颈
Passed 18 of 22 test cases with the skill, and 11 of 22 without it.
and 8 more in the full report
8 fixed11 passed either way3 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
提供推理服务性能监控的完整方案,实时采集 FPS、延迟、显存、GPU 利用率等指标,自动分析瓶颈位置并给出优化建议。基于 T4 vs S4000 真实压测经验。
通过对推理流程分解计时发现:S4000 前向推理 1.2ms(与 T4 相当),但后处理(NMS)耗时 13.7ms,是 T4(0.9ms)的 15 倍。定位到 S4000 的 NMS 算子实现存在性能问题。
8 卡并发测试中,通过监控各 GPU 的 FPS 发现 GPU 0 和 GPU 4 在 2 路并发时性能异常下降。进一步排查发现散热和驱动版本问题。
使用 PipelineMonitor 类对推理各阶段计时:前处理、前向推理、后处理、推流编码。通过 time.perf_counter() 记录耗时,计算 FPS 和延迟分布。
定期采集 GPU 状态:利用率、显存、温度、功耗。NVIDIA 用 nvidia-smi,摩尔线程用 mthreads-gmi。每 5 秒采集一次。
维护滑动窗口(最近 100 帧)计算:平均 FPS、P50/P95/P99 延迟、丢帧率。低于阈值时触发告警。
test cases passed, vs 11 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.