mirror of
https://github.com/kataras/iris.git
synced 2026-01-03 10:17:03 +00:00
new Timeout, TimeoutMessage configuration fields and apps.OnApplicationRegistered listener
This commit is contained in:
@@ -12,6 +12,17 @@ import (
|
||||
|
||||
func init() {
|
||||
context.SetHandlerName("iris/middleware/pprof.*", "iris.profiling")
|
||||
|
||||
/* for our readers:
|
||||
apps.OnApplicationRegistered(func(app *iris.Application) {
|
||||
app.Any("/debug/pprof/cmdline", iris.FromStd(pprof.Cmdline))
|
||||
app.Any("/debug/pprof/profile", iris.FromStd(pprof.Profile))
|
||||
app.Any("/debug/pprof/symbol", iris.FromStd(pprof.Symbol))
|
||||
app.Any("/debug/pprof/trace", iris.FromStd(pprof.Trace))
|
||||
|
||||
app.Any("/debug/pprof /debug/pprof/{action:string}", New())
|
||||
})
|
||||
*/
|
||||
}
|
||||
|
||||
// net/http/pprof copy:
|
||||
|
||||
Reference in New Issue
Block a user