加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – Pprof和golang – 如何解释结果?

发布时间:2020-12-14 01:40:42 所属栏目:Linux 来源:网络整理
导读:我试图在我的程序中使用pprof,但是,我的文章与我读过的文章略有不同(链接如下).在我的结果中,我得到了这样的表: (pprof) top101.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%
我试图在我的程序中使用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

这列是什么:平坦的%总和%暨%?

我正在阅读的文章:
https://software.intel.com/en-us/blogs/2014/05/10/debugging-performance-issues-in-go-programs
http://blog.golang.org/profiling-go-programs

解决方法

我知道我会为此而烦恼,但看看GopherCon会谈; one such example on interpretation is here,也有一个 Uber about pprof的谈话.

还有Profiling Go Programs博客文章.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读