pprof icon indicating copy to clipboard operation
pprof copied to clipboard

"(inline)" marker may be incorrect when -show or -hide filter is used

Open aalexand opened this issue 5 years ago • 0 comments

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)

aalexand avatar Feb 20 '20 21:02 aalexand