web服务器:
import (
_ "net/http/pprof"
)
服务进程(游戏服务)
import (
_ "net/http/pprof"
)
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
web服务器:
import (
_ "net/http/pprof"
)
服务进程(游戏服务)
import (
_ "net/http/pprof"
)
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()