pprof
pprof copied to clipboard
"(inline)" marker may be incorrect when -show or -hide filter is used
The inline flag may be inaccurate if 'show' or 'hide' filter is used. Those filters may filter out some of entries in the line array causing a remaining entry (which is physically inlined) to be the rightmost entry in the filtered array, and this heuristic will erroneously consider that line entry as not inlined.
Example:
$ go run pprof.go -top -symbolize=none -show=math.Abs internal/report/testdata/sample.cpu | grep math.Abs
show=math.Abs
110ms 6.25% 6.25% 110ms 6.25% math.Abs
$ go run pprof.go -top -symbolize=none internal/report/testdata/sample.cpu | grep math.Abs
0.11s 6.25% 87.50% 0.11s 6.25% math.Abs (inline)