每日 Harness 开源 · Source
返回本期 · Back to 2026-09-03

博客文章 · Blog Posts2026-09-03 · Thursday, September 3, 2026

Goroutine Leak Profiles

go.dev原文 ↗

Goroutine Leak Profiles
Go 1.27 的 goroutine leak profiler 在生产进程中筛选永久卡在 channel 或 `sync` 原语上的协程,GC 周期结束后可通过 curl 和 `go tool pprof` 查看。它补上 goleak/synctest 偏测试、普通 goroutine profile 无法区分设计性阻塞与泄漏的缺口,但范围仍限于可识别的永久阻塞模式。
–浏览

评论 · Comments