Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default = StdConfig().Build()
)
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.0.0
type Config struct { }
func DefaultConfig ¶ added in v1.0.0
func DefaultConfig() *Config
type StartReq ¶ added in v1.1.7
type StartReq struct { // post pprof file to the target Target string `json:"target" binding:"required"` // pprof command Profiles []string `form:"profiles" binding:"required"` // debug=N (all profiles): response format: N = 0: binary (default), N > 0: plaintext Debug *int `form:"debug"` // gc=N (heap profile): N > 0: run a garbage collection cycle before profiling GC *int `form:"gc"` // seconds=N (allocs, block, goroutine, heap, mutex, threadcreate profiles): return a delta profile // seconds=N (cpu (profile), trace profiles): profile for the given duration Seconds *int `form:"seconds"` }
Click to show internal directories.
Click to hide internal directories.