1
0
mirror of https://github.com/golang/go synced 2024-11-19 17:04:41 -07:00
go/src/pkg/runtime/pprof
Russ Cox 318309a51f runtime/pprof: adjust reported line numbers to show call sites
This is the same logic used in the standard tracebacks.
The caller pc is the pc after the call, so except in the
fake "call" caused by a panic, back up the pc enough
that the lookup will use the previous instruction.

Fixes #4150.
Fixes #4151.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7317047
2013-02-15 14:27:16 -05:00
..
pprof_test.go all: use t.Skip{,f} 2013-01-24 17:32:10 +11:00
pprof.go runtime/pprof: adjust reported line numbers to show call sites 2013-02-15 14:27:16 -05:00