Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce00339301 |
12
rest.go
12
rest.go
@@ -80,10 +80,10 @@ func registerHttpPprof(s *kratosRest.Server) {
|
||||
s.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||
s.HandleFunc("/debug/pprof/trace", pprof.Trace)
|
||||
|
||||
s.HandleFunc("/debug/allocs", pprof.Handler("allocs").ServeHTTP)
|
||||
s.HandleFunc("/debug/block", pprof.Handler("block").ServeHTTP)
|
||||
s.HandleFunc("/debug/goroutine", pprof.Handler("goroutine").ServeHTTP)
|
||||
s.HandleFunc("/debug/heap", pprof.Handler("heap").ServeHTTP)
|
||||
s.HandleFunc("/debug/mutex", pprof.Handler("mutex").ServeHTTP)
|
||||
s.HandleFunc("/debug/threadcreate", pprof.Handler("threadcreate").ServeHTTP)
|
||||
s.HandleFunc("/debug/pprof/allocs", pprof.Handler("allocs").ServeHTTP)
|
||||
s.HandleFunc("/debug/pprof/block", pprof.Handler("block").ServeHTTP)
|
||||
s.HandleFunc("/debug/pprof/goroutine", pprof.Handler("goroutine").ServeHTTP)
|
||||
s.HandleFunc("/debug/pprof/heap", pprof.Handler("heap").ServeHTTP)
|
||||
s.HandleFunc("/debug/pprof/mutex", pprof.Handler("mutex").ServeHTTP)
|
||||
s.HandleFunc("/debug/pprof/threadcreate", pprof.Handler("threadcreate").ServeHTTP)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user