简体   繁体   English

go 中的分析

[英]Profiling in go

What's the best way to get profiling information about my go program?获取有关我的 go 程序的分析信息的最佳方法是什么? I've seen references to pprof, but documentation seems scarce compared to other areas of Go.我看过对 pprof 的引用,但与 Go 的其他领域相比,文档似乎很少。

Have a look at the 6prof command .看看6prof命令 Note that it's for all architectures, despite its name.请注意,它适用于所有架构,尽管它的名称。

For reasons of disambiguation it is installed as 6prof although it also serves as an 8prof and a 5prof.出于消除歧义的原因,它安装为 6prof,尽管它也用作 8prof 和 5prof。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM