zhangmeng
2019-08-27 9c770865849b34ea48f66763aa11a83a10aa457c
main.go
@@ -11,6 +11,9 @@
   "time"
   "golang.org/x/sys/unix"
   "net/http"
   _ "net/http/pprof"
)
var (
@@ -61,6 +64,12 @@
func main() {
   flag.Parse()
   if server {
      go func() {
         http.ListenAndServe("0.0.0.0:6061", nil)
      }()
   }
   fnMap := map[string]func(context.Context, bool, string, int){
      push: profile.Push,
      pull: profile.Pull,