File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments