main.go
@@ -11,6 +11,9 @@ "time" "golang.org/x/sys/unix" "net/http" _ "net/http/pprof" ) var ( @@ -61,6 +64,12 @@ func main() { flag.Parse() if server { go func() { http.ListenAndServe("0.0.0.0:6061", nil) }() } fnMap := map[string]func(context.Context, bool, string, int){ push: profile.Push, pull: profile.Pull,