Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultFgprofPrefix url prefix of fgprof
DefaultFgprofPrefix = "/debug/fgprof"
)
View Source
const (
// DefaultPrefix url prefix of pprof
DefaultPrefix = "/debug/pprof"
)
Variables ¶
This section is empty.
Functions ¶
func FgprofRegister ¶ added in v0.1.1
func FgprofRouteRegister ¶ added in v0.1.1
func FgprofRouteRegister(rg *route.RouterGroup, prefixOptions ...string)
func Register ¶
Register the standard HandlerFuncs from the net/http/pprof package with the provided hertz.Hertz. prefixOptions is a optional. If not prefixOptions, the default path prefix is used, otherwise first prefixOptions will be path prefix.
func RouteRegister ¶
func RouteRegister(rg *route.RouterGroup, prefixOptions ...string)
RouteRegister the standard HandlerFuncs from the net/http/pprof package with the provided hertz.RouterGroup. prefixOptions is a optional. If not prefixOptions, the default path prefix is used, otherwise first prefixOptions will be path prefix.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
example
|
|
|
fgprof/custom_prefix
command
|
|
|
fgprof/custom_router_group
command
|
|
|
fgprof/default
command
|
|
|
pprof/custom_prefix
command
|
|
|
pprof/custom_router_group
command
|
|
|
pprof/default
command
|
Click to show internal directories.
Click to hide internal directories.