Skip to content

Commit

Permalink
Merge pull request #2120 from lcarva/fix-mem-profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zregvart authored Oct 31, 2024
2 parents 9e095ac + 2623f49 commit 6bcf86d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/root/root_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"fmt"
"io"
"os"
"runtime"
"runtime/pprof"
"runtime/trace"
"sync"
Expand Down Expand Up @@ -109,7 +108,6 @@ func NewRootCmd() *cobra.Command {
log.Fatal("could not create memory profile: ", err)
} else {
defer memprofile.Close()
runtime.GC()
if err := pprof.WriteHeapProfile(memprofile); err != nil {
log.Fatal("could not start CPU profile: ", err)
}
Expand Down

0 comments on commit 6bcf86d

Please sign in to comment.