From 2e39a9427085b6c39c4aff86f6ebc341f691752a Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 09 九月 2019 14:14:01 +0800
Subject: [PATCH] cpu test
---
main.go | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/main.go b/main.go
index 36470b8..b4ea6a9 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"
@@ -46,6 +48,9 @@
//fmt.Println("缂撳瓨鍒濆鍖栧畬鎴�",<- initchan)//dbserver鍒濆鍖栧畬姣�
ruleserver.Init()
go ruleserver.TimeTicker()
+ go func() {
+ logger.Info(http.ListenAndServe("0:0:0:0:6068",nil))
+ }()
go ruleserver.StartServer()
nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1)
wg.Wait()
--
Gitblit v1.8.0