Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/pprof: list comment added extra noise in 1.9beta2 #21023
What version of Go are you using (
This problem is related to poor offline symbolization in Darwin.
The reason pprof shows the whole file is because there are samples associated to line 13 (see the 338Mb on the bad output listed above). pprof will print the lines around the samples associated to algOne (between lines 13 and 89 in this file).
The Go runtime generates correct symbolized profiles, which is why the problem goes away when the binary isn't specified in the command line. But Go doesn't tag the mappings as fully symbolized, so pprof will attempt to resymbolize them if given a chance (see google/pprof#147 for some relevant discussion).
When the binary is specified on the command line, pprof will resymbolize using that binary, and it gets some mangled line numbers in Darwin when dealing with inline functions.
Note how in the bad case we have a single frame with the function name and the filename of olgOne, but the line number that should correspond to bytes.NewBuffer.
I would recommend: