소스 검색

pprof debug

Darien Raymond 8 년 전
부모
커밋
d809973621
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  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)
+	}()
+}