2018-01-04 12:53:07 +00:00
. \" generated with Ronn/v0.7.3
. \" http://github.com/rtomayko/ronn/tree/0.7.3
.
2018-06-13 11:02:14 +01:00
.TH "COREDNS\-PPROF" "7" "June 2018" "CoreDNS" "CoreDNS plugins"
2018-01-04 12:53:07 +00:00
.
.SH "NAME"
\fI pprof\fR \- publishes runtime profiling data at endpoints under \fB /debug/pprof\fR \.
.
.SH "DESCRIPTION"
You can visit \fB /debug/pprof\fR on your site for an index of the available endpoints\. By default it will listen on localhost:6053\.
.
.P
2018-05-24 07:51:59 +01:00
This is a debugging tool\. Certain requests (such as collecting execution traces) can be slow\. If you use pprof on a live server, consider restricting access or enabling it only temporarily\.
2018-01-04 12:53:07 +00:00
.
2018-03-05 19:58:28 +00:00
.P
This plugin can only be used once per Server Block\.
.
2018-01-04 12:53:07 +00:00
.SH "SYNTAX"
.
.nf
pprof [ADDRESS]
.
.fi
.
.P
If not specified, ADDRESS defaults to localhost:6053\.
.
.SH "EXAMPLES"
Enable pprof endpoints:
.
.IP "" 4
.
.nf
\& \. {
pprof
}
.
.fi
.
.IP "" 0
.
.P
2018-05-24 07:51:59 +01:00
And use the pprof tool to get statistics: \fB go tool pprof http://localhost:6053\fR \.
.
.P
2018-01-04 12:53:07 +00:00
Listen on an alternate address:
.
.IP "" 4
.
.nf
\& \. {
pprof 10\. 9\. 8\. 7:6060
}
.
.fi
.
.IP "" 0
.
.P
Listen on an all addresses on port 6060:
.
.IP "" 4
.
.nf
\& \. {
pprof :6060
}
.
.fi
.
.IP "" 0
2018-01-10 11:45:12 +00:00
.
.SH "ALSO SEE"
2018-01-04 12:53:07 +00:00
See Go\' s pprof documentation \fI https://golang\. org/pkg/net/http/pprof/\fR and Profiling Go Programs \fI https://blog\. golang\. org/profiling\- go\- programs\fR \.