in pkg/profiler/profiler.go [20:29]
func EnableCPUProfile(cpuProfile *string) {
if *cpuProfile != "" {
f, err := os.Create(*cpuProfile)
if err != nil {
log.Errorf("error: %v", err)
}
pprof.StartCPUProfile(f)
log.Info("Start CPU Profiling")
}
}