Compare commits

...

1 Commits

Author SHA1 Message Date
tx7do
ce00339301 feat: pprof support. 2023-11-06 19:29:13 +08:00
2 changed files with 7 additions and 7 deletions

12
rest.go
View File

@@ -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)
}

View File

@@ -1,3 +1,3 @@
git tag v0.2.19
git tag v0.2.20
git push origin --tags