We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02472e7 commit bb73e2bCopy full SHA for bb73e2b
pkg/test/main/main.go
@@ -24,7 +24,6 @@ import (
24
"log"
25
"net/http"
26
"os"
27
- "runtime/pprof"
28
"time"
29
30
"github.com/pkg/profile"
@@ -300,20 +299,6 @@ func main() {
300
299
}
301
302
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
-
317
log.Printf("Test for %s passed!\n", mode)
318
319
0 commit comments