Skip to content

Commit bb73e2b

Browse files
committed
merge main and update go mod
Signed-off-by: alecholmez <[email protected]>
1 parent 02472e7 commit bb73e2b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pkg/test/main/main.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"log"
2525
"net/http"
2626
"os"
27-
"runtime/pprof"
2827
"time"
2928

3029
"github.com/pkg/profile"
@@ -300,20 +299,6 @@ func main() {
300299
}
301300
}
302301

303-
if pprofEnabled {
304-
for _, prof := range []string{"block", "goroutine", "mutex"} {
305-
p := pprof.Lookup(prof)
306-
filePath := fmt.Sprintf("%s_profile_%s.pb.gz", prof, mode)
307-
log.Printf("storing %s profile for %s in %s", prof, mode, filePath)
308-
f, err := os.Create(filePath)
309-
if err != nil {
310-
log.Fatalf("could not create %s profile %s: %s", prof, filePath, err)
311-
}
312-
p.WriteTo(f, 1) // nolint:errcheck
313-
f.Close()
314-
}
315-
}
316-
317302
log.Printf("Test for %s passed!\n", mode)
318303
}
319304

0 commit comments

Comments
 (0)