go pprof samples 时间大于 Duration 是为啥?是因为估算的不准么?

go tool pprof main cpu.prof
File: main
Type: cpu
Time: Jan 15, 2019 at 4:37pm (CST)
Duration: 12.10s, Total samples = 17.83s (147.33%)
Entering interactive mode (type "help" for commands, "o" for options)
已邀请:

qiyin

赞同来自:

Duration 是持续时间,samples 貌似是程序运行时间的总和,如果包含goroutine那么就会有时间重合,没有验证,请自行验证

要回复问题请先登录注册