打开调试PPROF

This commit is contained in:
Rosy-zhudan
2019-08-26 17:48:50 +08:00
parent 69cd849bbd
commit 73fbb43157

View File

@@ -15,8 +15,8 @@ import (
"git.rosy.net.cn/jx-callback/business/partner/putils"
"git.rosy.net.cn/jx-callback/globals"
// _ "net/http/pprof"
// "net/http"
_ "net/http/pprof"
"net/http"
)
const (
@@ -202,9 +202,9 @@ func GetFilterStoreList(storeList []*cms.StoreExt, vendorMap, storeIDMap map[int
}
func StartOrEndOpStore(ctx *jxcontext.Context, isStart bool, vendorIDList []int, storeIDList []int, startTime, endTime int16, isAsync, isContinueWhenError bool) (retVal interface{}, err error) {
// go func() {
// http.ListenAndServe("127.0.0.1:8086", nil)
// }()
go func() {
http.ListenAndServe("127.0.0.1:8086", nil)
}()
storeList, err := GetStoreList(ctx)
vendorMap := make(map[int]bool)
for _, vendorID := range vendorIDList {