Pprof listen (#639)

* add listen addr option

* Add listen address option to pprof

* There is configuration

* code styling
This commit is contained in:
Chris O'Haver 2017-04-24 10:27:26 -04:00 committed by John Belamaric
parent 4c9351b0a3
commit f359aea2fa
4 changed files with 34 additions and 9 deletions

View file

@ -12,6 +12,8 @@ func TestPProf(t *testing.T) {
shouldErr bool
}{
{`pprof`, false},
{`pprof 1.2.3.4:1234`, false},
{`pprof :1234`, false},
{`pprof {}`, true},
{`pprof /foo`, true},
{`pprof {