mirror of
https://github.com/astaxie/beego.git
synced 2025-07-15 05:01:01 +00:00
add support goroutine pprof
This commit is contained in:
2
beego.go
2
beego.go
@ -156,7 +156,7 @@ func FilterPrefixPath(path string, filter http.HandlerFunc) *App {
|
||||
func Run() {
|
||||
if PprofOn {
|
||||
BeeApp.RegisterController(`/debug/pprof`, &ProfController{})
|
||||
BeeApp.RegisterController(`/debug/pprof/:pp([\w+])`, &ProfController{})
|
||||
BeeApp.RegisterController(`/debug/pprof/:pp([\w]+)`, &ProfController{})
|
||||
}
|
||||
BeeApp.Run()
|
||||
}
|
||||
|
Reference in New Issue
Block a user