有Go的性能分析器吗?

huangapple go评论113阅读模式
英文:

Is there a Go profiler?

问题

我在Go发布不久后稍微尝试了一下。那时还没有性能分析器,现在有了吗?

英文:

I played around with Go a bit shortly after it came out. There wasn't a profiler then; is there one now?

答案1

得分: 5

我使用pprof包和Google perftools

英文:

I use pprof package, and Google perftools.

答案2

得分: 1

如果您使用gccgo编译器而不是6g编译器,您可能能够使用正常的GNU工具,例如gprof

我实际上还没有使用gprof,但至少我知道它对于gdb是有效的。

英文:

If you use the gccgo compiler instead of the 6g compiler, you'd probably be able to use the normal GNU tools, i.e. gprof.

I haven't actually done it with gprof, but I at least know that it works for gdb.

huangapple
  • 本文由 发表于 2010年10月5日 21:17:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/3863972.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定