start pprof only if set
@@ -82,7 +82,9 @@ func InitConfig() {
}
func launchPProf() {
+ if pprof {
fmt.Println("Starting PProf HTTP server")
config.SetDefault("pprof.address", "localhost:6060")
professor.Launch(config.GetString("pprof.address"))
}
+}
