Write to file

This commit is contained in:
Felix Geisendörfer 2021-09-10 10:19:11 +02:00
parent 046954caa7
commit d315e34e2e
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,8 @@ import (
)
func main() {
pprof.StartCPUProfile(os.Stdout)
file, _ := os.Create("./cpu-utilization.pprof")
pprof.StartCPUProfile(file)
defer pprof.StopCPUProfile()
go cpuHog()

Binary file not shown.