mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
Pprof listen (#639)
* add listen addr option * Add listen address option to pprof * There is configuration * code styling
This commit is contained in:
committed by
John Belamaric
parent
4c9351b0a3
commit
f359aea2fa
@@ -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
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user