Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildSSAInput ¶
type BuildSSAOutput ¶
type PingOutput ¶
PingOutput is used for service health
type Router ¶
func (*Router) SetupProfile ¶
func (r *Router) SetupProfile()
profile the standard HandlerFuncs from the net/http/pprof package with the provided gin.Engine. prefixOptions is a optional. If not prefixOptions, the default path prefix is used, otherwise first prefixOptions will be path prefix.
Basic Usage:
- use the pprof tool to look at the heap profile: go tool pprof http://localhost:9999/debug/pprof/heap
- look at a 30-second CPU profile: go tool pprof http://localhost:9999/debug/pprof/profile
- look at the goroutine blocking profile, after calling runtime.SetBlockProfileRate: go tool pprof http://localhost:9999/debug/pprof/block
- collect a 5-second execution trace: wget http://localhost:9999/debug/pprof/trace?seconds=5
Click to show internal directories.
Click to hide internal directories.