diff --git a/pprof.go b/pprof.go new file mode 100644 index 0000000..977eeb0 --- /dev/null +++ b/pprof.go @@ -0,0 +1,14 @@ +// +build pprof + +package main + +import ( + _ "net/http/pprof" + "net/http" +) + +func init() { + go func() { + http.ListenAndServe("localhost:8080", nil) + }() +}