cmd/pprof: weblist gives wrong flat count #52000
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I profiled the standard library's
png.Encode
function and looked at this attached profile:png_encode.zip
I then ran both
weblist
andlist
on thepng.filter
function.What did you expect to see?
I expect both
weblist
andlist
to show the same result.What did you see instead?
I saw
list
showing the correct result, with the sum of theflat
time ofpng.abs8
inpng.filter
tallying with the total time spent onpng.abs8
.In particular, the below log shows that
png.abs8
took 1.56 seconds in total.Adding the time spent on
png.abs8
inpng.filter
also shows the same 1.56 seconds.However,
weblist
shows the wrong result, it seems to exagerate the result.Pprof listing.zip
For example, on line 268,
list
shows only 80ms spent, whereasweblist
shows 360ms spent.The text was updated successfully, but these errors were encountered: