]> Cypherpunks repositories - gostls13.git/commit
cmd/pprof: don't use local symbolization for remote source
authorIan Lance Taylor <iant@golang.org>
Fri, 24 Jun 2016 23:59:39 +0000 (16:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 25 Jun 2016 00:36:40 +0000 (00:36 +0000)
commit4fcb4eb27986e5fa7d26aeb85b04909e03d11ff9
treec4a36d4f373e9f7a90190fee83e580d9d8748c15
parent83e839f86fcc0762ea513f8d5dd9a50a8338e9c2
cmd/pprof: don't use local symbolization for remote source

If we are using a remote source (a URL), and the user did not specify
the executable file to use, then don't try to use a local source.
This was misbehaving because the local symbolizer will not fail
if there is any memory map available, but the presence of a memory map
does not ensure that the files and symbols are actually available.

We still need a pprof testsuite.

Fixes #16159.

Change-Id: I0250082a4d5181c7babc7eeec6bc95b2f3bcaec9
Reviewed-on: https://go-review.googlesource.com/24464
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/pprof/pprof.go