diff --git a/main/distro/debug/debug.go b/main/distro/debug/debug.go new file mode 100644 index 000000000..6de0312a8 --- /dev/null +++ b/main/distro/debug/debug.go @@ -0,0 +1,10 @@ +package debug + +import _ "net/http/pprof" +import "net/http" + +func init() { + go func() { + http.ListenAndServe("localhost:6060", nil) + }() +}