Added option to enable pprof.

This commit is contained in:
claudemiro
2016-09-01 21:03:29 -03:00
parent 0bd4fa02e9
commit 9d732fb01a
5 changed files with 10 additions and 2 deletions
+4
View File
@@ -59,6 +59,10 @@ func Start(filename string) {
r.Get("/apps/:app_id/channels/:channel_name/users", (&getChannelUsersHandler{db}).ServeHTTP)
})
if conf.Profiling {
r.Mount("/debug", middleware.Profiler())
}
if conf.SSL {
go func() {
log.Infof("Starting HTTPS service on %s ...", conf.SSLHost)