Browse Source

pprof debug

Darien Raymond 8 years ago
parent
commit
d809973621
1 changed files with 10 additions and 0 deletions
  1. 10 0
      main/distro/debug/debug.go

+ 10 - 0
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)
+	}()
+}