pprof middleware (#138)

Add pprof middleware, enabled by pprof directive.
This commit is contained in:
Miek Gieben
2016-04-28 10:26:58 +01:00
parent 7a8d943bcc
commit 2700eece2e
8 changed files with 130 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ var directiveOrder = []directive{
{"bind", setup.BindHost},
{"tls", https.Setup},
{"health", setup.Health},
{"pprof", setup.PProf},
// Other directives that don't create HTTP handlers
{"startup", setup.Startup},