Documentation ¶
Overview ¶
Package pprof usage: app.Get(iris.RouteWildcardPath("/debug/pprof", "action"), pprof.New()) for specific router adaptors follow these optional route syntax: 'adaptors/httprouter':
app := iris.New() app.Adapt(httprouter.New()) app.Get("/debug/pprof/*action", pprof.New())
'adaptors/gorillamux':
app := iris.New() app.Adapt(gorillamux.New()) app.Get("/debug/pprof/{action:.*}", pprof.New())
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() iris.HandlerFunc
New returns a new pprof (profile, cmdline, symbol, goroutine, heap, threadcreate, debug/block) Middleware. Note: Route MUST have the last named parameter wildcard named '*action'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.