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

@@ -11,14 +11,14 @@ For more information, please see [Go's pprof
documentation](https://golang.org/pkg/net/http/pprof/) and read
[Profiling Go Programs](https://blog.golang.org/profiling-go-programs).
There is not configuration.
## Syntax
~~~
pprof
pprof [ADDRESS]
~~~
If not specified, ADDRESS defaults to localhost:6053.
## Examples
Enable pprof endpoints:
@@ -26,3 +26,15 @@ Enable pprof endpoints:
~~~
pprof
~~~
Listen on an alternate address:
~~~
pprof 10.9.8.7:6060
~~~
Listen on an all addresses on port 6060:
~~~
pprof :6060
~~~