Skip to content

Commit 6bcf86d

Browse files
authored
Merge pull request #2120 from lcarva/fix-mem-profile
2 parents 9e095ac + 2623f49 commit 6bcf86d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/root/root_cmd.go

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"fmt"
2222
"io"
2323
"os"
24-
"runtime"
2524
"runtime/pprof"
2625
"runtime/trace"
2726
"sync"
@@ -109,7 +108,6 @@ func NewRootCmd() *cobra.Command {
109108
log.Fatal("could not create memory profile: ", err)
110109
} else {
111110
defer memprofile.Close()
112-
runtime.GC()
113111
if err := pprof.WriteHeapProfile(memprofile); err != nil {
114112
log.Fatal("could not start CPU profile: ", err)
115113
}

0 commit comments

Comments
 (0)