You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/net/http/pprof/pprof.go
+11-17Lines changed: 11 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,6 @@ import (
77
77
"fmt"
78
78
"html"
79
79
"internal/godebug"
80
-
"internal/goexperiment"
81
80
"internal/profile"
82
81
"io"
83
82
"log"
@@ -362,22 +361,17 @@ var profileSupportsDelta = map[handler]bool{
362
361
}
363
362
364
363
varprofileDescriptions=map[string]string{
365
-
"allocs": "A sampling of all past memory allocations",
366
-
"block": "Stack traces that led to blocking on synchronization primitives",
367
-
"cmdline": "The command line invocation of the current program",
368
-
"goroutine": "Stack traces of all current goroutines. Use debug=2 as a query parameter to export in the same format as an unrecovered panic.",
369
-
"heap": "A sampling of memory allocations of live objects. You can specify the gc GET parameter to run GC before taking the heap sample.",
370
-
"mutex": "Stack traces of holders of contended mutexes",
371
-
"profile": "CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.",
372
-
"symbol": "Maps given program counters to function names. Counters can be specified in a GET raw query or POST body, multiple counters are separated by '+'.",
373
-
"threadcreate": "Stack traces that led to the creation of new OS threads",
374
-
"trace": "A trace of execution of the current program. You can specify the duration in the seconds GET parameter. After you get the trace file, use the go tool trace command to investigate the trace.",
375
-
}
376
-
377
-
funcinit() {
378
-
ifgoexperiment.GoroutineLeakProfile {
379
-
profileDescriptions["goroutineleak"] ="Stack traces of all leaked goroutines. Use debug=2 as a query parameter to export in the same format as an unrecovered panic."
380
-
}
364
+
"allocs": "A sampling of all past memory allocations",
365
+
"block": "Stack traces that led to blocking on synchronization primitives",
366
+
"cmdline": "The command line invocation of the current program",
367
+
"goroutine": "Stack traces of all current goroutines. Use debug=2 as a query parameter to export in the same format as an unrecovered panic.",
368
+
"heap": "A sampling of memory allocations of live objects. You can specify the gc GET parameter to run GC before taking the heap sample.",
369
+
"mutex": "Stack traces of holders of contended mutexes",
370
+
"profile": "CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.",
371
+
"symbol": "Maps given program counters to function names. Counters can be specified in a GET raw query or POST body, multiple counters are separated by '+'.",
372
+
"threadcreate": "Stack traces that led to the creation of new OS threads",
373
+
"trace": "A trace of execution of the current program. You can specify the duration in the seconds GET parameter. After you get the trace file, use the go tool trace command to investigate the trace.",
374
+
"goroutineleak": "Stack traces of all leaked goroutines. Use debug=2 as a query parameter to export in the same format as an unrecovered panic.",
0 commit comments