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: heap command top and traces show different data #34236
What version of Go are you using (
In particular, the big slice allocated in Test1 was sampled but when the trace was collected, it was already gc'd.
I think this is working as intended, but let me know if it makes sense to you. This bug may indicate insufficient documentation or the current documentation is hard to find.