add pprof in main
package main
-import "github.com/karimra/gnmic/cmd"
+import (
+ "log"
+ "net/http"
+ _ "net/http/pprof"
+
+ "github.com/karimra/gnmic/cmd"
+)
func main() {
+ go func() {
+ log.Println(http.ListenAndServe("localhost:6060", nil))
+ }()
cmd.Execute()
}
