79

go pprof 采样何时进行 | Youmai の Blog

 6 years ago
source link: http://michaelyou.github.io/2017/12/06/go-pprof-%E9%87%87%E6%A0%B7%E4%BD%95%E6%97%B6%E8%BF%9B%E8%A1%8C/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
123456789import ( _ "net/http/pprof")func main() { go func() { log.Println(http.ListenAndServe("localhost:6060", nil)) }()} 这段代码大家应该都很熟悉,go tool pprof工具的通用代码,用来做性能等分析。我这两天尝试用了一下,不

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK