Skip to content

Commit

Permalink
fix: close cpu profile
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Apr 4, 2024
1 parent 4900170 commit 1c7fba6
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 1c7fba6

Please sign in to comment.