]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: set Function.start_line field
authorMichael Pratt <mpratt@google.com>
Fri, 30 Sep 2022 21:08:43 +0000 (17:08 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 14 Oct 2022 14:48:40 +0000 (14:48 +0000)
commita401468b0092446d537edc2000c23e8015ce6b58
tree38b59e415f489ac13d4ba25ff9c384dfcc9ae2a3
parentf2656f20ea420ada5f15ef06ddf18d2797e18841
runtime/pprof: set Function.start_line field

Now that we plumb the start line to the runtime, we can include in pprof
files. Since runtime.Frame.startLine is not (currently) exported, we
need a runtime helper to get the value.

For #55022.
Updates #56135.

Change-Id: Ifc5b68a7b7170fd7895e4099deb24df7977b22ea
Reviewed-on: https://go-review.googlesource.com/c/go/+/438255
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/pprof/proto.go
src/runtime/pprof/runtime.go
src/runtime/symtab.go