cmdMonitor := &event.CommandMonitor{
Started: func(_ context.Context, evt *event.CommandStartedEvent) {
log.Printf("Command started: %v\n", evt.Command)
},
}
option := options.Client().ApplyURI(connectionURI).SetMonitor(cmdMonitor)
Category: Uncategorized
bookmark_borderGo Profile with pprof
Basic command line
go tool pprof {name of profile}
go tool pprof -http=:8092 profile