Add http pprof profile debugging

This commit is contained in:
Tobie Morgan Hitchcock 2020-11-26 21:37:20 +00:00
parent 66314ef074
commit 36838d2198

View file

@ -30,6 +30,7 @@ func Setup(opts *cnf.Options) (err error) {
s := fibre.Server() s := fibre.Server()
routes(s) routes(s)
s.Pprof()
s.SetName("web") s.SetName("web")
s.SetIdleTimeout("5s") s.SetIdleTimeout("5s")
s.SetReadTimeout("30s") s.SetReadTimeout("30s")