【发布时间】:2015-09-14 18:20:41
【问题描述】:
我正在尝试在我的程序中使用 pprof,但是,结果与我阅读的文章(下面的链接)略有不同。在我的结果中,我得到了这样的表格:
(pprof) top10
1.65s of 1.72s total (95.93%)
Showing top 10 nodes out of 114 (cum >= 0.01s)
flat flat% sum% cum cum%
1.19s 69.19% 69.19% 1.20s 69.77% syscall.Syscall
0.16s 9.30% 78.49% 0.16s 9.30% runtime._ExternalCode
这些列是什么:flat flat% sum% cum cum%?
我正在阅读的文章: https://software.intel.com/en-us/blogs/2014/05/10/debugging-performance-issues-in-go-programs http://blog.golang.org/profiling-go-programs
【问题讨论】:
-
格式有点不同,但是数据和列的意思还是一样的。 'flat' 是函数中的时间,'cum' 是累积时间是一个函数,它下面的所有内容。
-
你介意把你的标题改成
What does flat, flat%, sum%, cum, cum% mean in Golang pprof results? -
我认为当人们搜索此类问题时可能更容易找到。