From 943e5b2b9b1af596131f5e8f623bfc514668cd2d Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 09 九月 2019 14:56:12 +0800
Subject: [PATCH] cpu test

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

diff --git a/main.go b/main.go
index 7040db7..3a954f7 100644
--- a/main.go
+++ b/main.go
@@ -4,6 +4,8 @@
 	"basic.com/dbapi.git"
 	"basic.com/pubsub/protomsg.git"
 	"basic.com/valib/deliver.git"
+	"net/http"
+	_ "net/http/pprof"
 	"ruleprocess/insertdata"
 	"ruleprocess/util"
 	"time"
@@ -38,7 +40,7 @@
 func main() {
 	flag.Parse()
 	wg := sync.WaitGroup{}
-	wg.Add(2)
+	wg.Add(3)
 
 	dbapi.Init(*dbIp, *dbPort)
 	go cache.Init(initchan, *dbIp, *surveyPort, *pubPort)
@@ -46,6 +48,9 @@
 	//fmt.Println("缂撳瓨鍒濆鍖栧畬鎴�",<- initchan)//dbserver鍒濆鍖栧畬姣�
 	ruleserver.Init()
 	go ruleserver.TimeTicker()
+	go func() {
+		http.ListenAndServe("0:0:0:0:8069",nil)
+	}()
 	go ruleserver.StartServer()
 	nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1)
 	wg.Wait()
@@ -124,7 +129,7 @@
 	}
 
 	// 鍏堣繘琛屼竴涓嬭拷韪�
-	//ruleserver.FaceIsSame(&m)
+	ruleserver.FaceIsSame(&m)
 	args.CameraId = m.Cid
 	args.TaskId = m.Tasklab.Taskid
 	// 鎶婂浘鐗囩殑浜岃繘鍒惰В鍘嬬缉杩涜鐢绘鍦ㄥ帇缂╁洖鍘�

--
Gitblit v1.8.0