Pprof listen (#639)
* add listen addr option * Add listen address option to pprof * There is configuration * code styling
This commit is contained in:
parent
4c9351b0a3
commit
f359aea2fa
4 changed files with 34 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue