some modify

This commit is contained in:
joyz committed 2019-01-22 22:11:54 +08:00
1 parent 2b56664d85
commit 90beada459
4 files changed
+17 -20

No files matched your search

+11
View File
@@ -7,6 +7,7 @@ import (
"fmt"
"net"
"net/http"
_ "net/http/pprof"
"runtime/debug"
"sync"
"sync/atomic"
@@ -153,6 +154,16 @@ func (b *Broker) Start() {
//system monitor
go StateMonitor()
if b.config.Debug {
startPProf()
}
}
func startPProf() {
go func() {
http.ListenAndServe(":10060", nil)
}()
}
func StateMonitor() {