From 9c770865849b34ea48f66763aa11a83a10aa457c Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 27 八月 2019 09:54:05 +0800
Subject: [PATCH] update shm deliver

---
 main.go |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/main.go b/main.go
index c46e870..24ed860 100644
--- a/main.go
+++ b/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,

--
Gitblit v1.8.0