Descriptionruntime/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 issue 4150.
Fixes issue 4151.
Patch Set 1 #Patch Set 2 : diff -r 90e25d15bc1c https://code.google.com/p/go/ #Patch Set 3 : diff -r 90e25d15bc1c https://code.google.com/p/go/ #Patch Set 4 : diff -r e7b206201e2a https://go.googlecode.com/hg/ #MessagesTotal messages: 3
|