1
0
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:
Gerasimos (Makis) Maropoulos
2021-12-09 14:44:03 +02:00
parent 968a9ec06c
commit d6cfe3fe5b
9 changed files with 124 additions and 7 deletions

View File

@@ -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: