Skip to content

Commit

Permalink
Merge pull request #1046 from testwill/close_cpu_profile
Browse files Browse the repository at this point in the history
fix: close cpu profile
  • Loading branch information
rogeralsing authored Apr 4, 2024
2 parents 4900170 + 1c7fba6 commit 9bb1999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/remote-benchmark/node1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
defer f.Close()
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
}
Expand Down

0 comments on commit 9bb1999

Please sign in to comment.