Skip to content

Commit bd0dbea

Browse files
committed
remove profiler
Signed-off-by: Robert Landers <landers.robert@gmail.com>
1 parent 764f373 commit bd0dbea

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

cli/cli.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import (
4444
"os"
4545
"os/signal"
4646
"runtime"
47-
"runtime/pprof"
4847
"strings"
4948
"sync"
5049
"syscall"
@@ -91,14 +90,14 @@ func execute(args []string, options map[string]string) int {
9190

9291
defer os.RemoveAll(data)
9392

94-
profile, err := os.CreateTemp("", "")
95-
if err != nil {
96-
panic(err)
97-
}
98-
err = pprof.StartCPUProfile(profile)
99-
if err != nil {
100-
panic(err)
101-
}
93+
//profile, err := os.CreateTemp("", "")
94+
//if err != nil {
95+
// panic(err)
96+
//}
97+
//err = pprof.StartCPUProfile(profile)
98+
//if err != nil {
99+
// panic(err)
100+
//}
102101

103102
go func() {
104103
sigs := make(chan os.Signal, 1)
@@ -107,10 +106,10 @@ func execute(args []string, options map[string]string) int {
107106

108107
<-sigs
109108

110-
pprof.StopCPUProfile()
111-
profile.Close()
109+
//pprof.StopCPUProfile()
110+
//profile.Close()
112111

113-
logger.Warn("Profile output", zap.String("Filename", profile.Name()))
112+
//logger.Warn("Profile output", zap.String("Filename", profile.Name()))
114113

115114
os.RemoveAll(data)
116115
os.Exit(0)

0 commit comments

Comments
 (0)