Go profiling profile is empty

Issue I’m following this tutorial on Go profiling and did as advised: flag.Parse() if *cpuprofile != “” { f, err := os.Create(*cpuprofile) if err != nil { log.Fatal(err) } pprof.StartCPUProfile(f) defer pprof.StopCPUProfile() } I then started my code with the

Continue reading