[英]Show counts of function calls in golang pprof
对于profing程序,我使用以下命令:
go tool pprof http://localhost:6060/debug/pprof/profile
因此在网络模式下,我得到了这样的图片:
如何显示函数调用的数量,而不是像golang博客中相同的图片一样在这个函数内部花费的时间?
PS有一个类似的问题 。 但是如何只用pprof(没有kcachegrind和其他工具)呢?
Golang的分析工作通过计算函数出现在堆栈中的计数,每个样本时间窗口一次。 它不会得到调用和被调用,而是被看到调用和seens被调用。 所以事实上它不能给出通话计数,但可以给出不同的时间花费。
[英]pprof (for golang) doesn't show details for my package
[英]Why does `go tool pprof` show addresses instead of function names?
[英]Pprof and golang - how to interpret a results?
[英]golang pprof heap count meaning
[英]Golang pprof full call graph
[英]Golang Alloc and HeapAlloc vs pprof large discrepancies
[英]golang - net/http/pprof doesn't work
[英]Can't get golang pprof working
[英]How can I make pprof show every single function in a call tree?
[英]Golang mock a function with dynamic function calls
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.