runtime/pprof: mechanism to show runtime frames in heap profiles #71175
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
runtime/pprof hides "runtime" frames in heap profiles, so allocations in maps appear at the map assignment location in the calling code, but not in
runtime.mapassign
itself.Personally I find this behavior frustrating because it makes it much more difficult to look at the overall impact of maps in general on the heap, since there is no common frame to look at. I think it would be nice to have a mechanism to keep runtime frames in heap profiles. Perhaps something like
GODEBUG=heapprofileruntimeframes=1
.I broke the runtime frame hiding in 1.24 (#71174) and discovered the bug because @bboreham mentioned that they liked the change!
The text was updated successfully, but these errors were encountered: