runtime/pprof,cmd/compile: simplified symbol names for generics break PGO matching #58712
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
For functab, and thus stack traces and symbol names in pprof profile outputs, the compiler simplifies symbol names like
foo[go.shape.int64]
to justfoo[...]
.When reading a profile for PGO, the compiler will attempt to match symbols and fail because the profile symbol name does not match the actual symbol name.
This could be addressed from either end:
Function.name = "foo[...]"
,Function.system_name = "foo[go.shape.int64]"
perhaps?).foo[...]
to any instantiation offoo
.cc @cherrymui @aclements
The text was updated successfully, but these errors were encountered: