go/src/runtime/pprof
Tolya Korniltsev d95e25e83c runtime/pprof: fix inlined generics locations
When generic function[a,b] is inlined to the same generic function[b,a]
with different types (not recursion) it is expected to get a pprof with
a single Location with two functions. However due to incorrect check
for generics names using runtime.Frame.Function, the profileBuilder
assumes it is a recursion and emits separate Location.

This change fixes the recursion check for generics functions by using
runtime_expandFinalInlineFrame

Fixes #64641

Change-Id: I3f58818f08ee322b281daa377fa421555ad328c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/549135
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-12-13 20:40:52 +00:00
..
testdata
defs_darwin.go runtime,runtime/pprof: get memory mappings on darwin. 2023-08-03 16:07:59 +00:00
defs_darwin_amd64.go runtime/pprof: correct field alignment in machVMRegionBasicInfoData 2023-08-04 23:35:39 +00:00
defs_darwin_arm64.go runtime/pprof: correct field alignment in machVMRegionBasicInfoData 2023-08-04 23:35:39 +00:00
elf.go
label.go runtime: add available godoc link 2023-11-08 16:59:11 +00:00
label_test.go all: add missing copyright header 2023-11-17 23:34:11 +00:00
map.go
mprof_test.go
pe.go
pprof.go runtime/pprof: add section headers to Profile doc 2023-12-06 21:50:36 +00:00
pprof_norusage.go
pprof_rusage.go
pprof_test.go runtime/pprof: include labels for caller of goroutine profile 2023-10-25 17:37:34 +00:00
pprof_windows.go
proto.go runtime/pprof: fix inlined generics locations 2023-12-13 20:40:52 +00:00
proto_darwin.go runtime,runtime/pprof: get memory mappings on darwin. 2023-08-03 16:07:59 +00:00
proto_other.go runtime,runtime/pprof: get memory mappings on darwin. 2023-08-03 16:07:59 +00:00
proto_test.go internal/profile: fully decode proto even if there are no samples 2023-12-07 19:52:28 +00:00
proto_windows.go runtime,runtime/pprof: get memory mappings on darwin. 2023-08-03 16:07:59 +00:00
protobuf.go
protomem.go
protomem_test.go runtime/pprof: fix inlined generics locations 2023-12-13 20:40:52 +00:00
runtime.go runtime: add available godoc link 2023-11-08 16:59:11 +00:00
runtime_test.go
rusage_test.go
vminfo_darwin.go runtime/pprof: correct field alignment in machVMRegionBasicInfoData 2023-08-04 23:35:39 +00:00
vminfo_darwin_test.go runtime/pprof: retry vmmap invocation if it failed due to a reported temporary resource shortage 2023-11-29 21:44:02 +00:00