Documentation
¶
Index ¶
- func BlockHandler(c *gin.Context)
- func CmdlineHandler(c *gin.Context)
- func FileSize(s int64) string
- func GoroutineHandler(c *gin.Context)
- func HeapHandler(c *gin.Context)
- func IndexHandler(c *gin.Context)
- func InfoHandler(c *gin.Context)
- func ProfileHandler(c *gin.Context)
- func Route(router *gin.Engine)
- func SymbolHandler(c *gin.Context)
- func ThreadCreateHandler(c *gin.Context)
- func TraceHandler(c *gin.Context)
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockHandler ¶
BlockHandler will pass the call from /debug/pprof/block to pprof
func CmdlineHandler ¶
CmdlineHandler will pass the call from /debug/pprof/cmdline to pprof
func GoroutineHandler ¶
GoroutineHandler will pass the call from /debug/pprof/goroutine to pprof
func HeapHandler ¶
HeapHandler will pass the call from /debug/pprof/heap to pprof
func IndexHandler ¶
IndexHandler will pass the call from /debug/pprof to pprof
func InfoHandler ¶
IndfoHandler will pass the call from /debug/info to systeminfo
func ProfileHandler ¶
ProfileHandler will pass the call from /debug/pprof/profile to pprof
func SymbolHandler ¶
SymbolHandler will pass the call from /debug/pprof/symbol to pprof
func ThreadCreateHandler ¶
ThreadCreateHandler will pass the call from /debug/pprof/threadcreate to pprof
func TraceHandler ¶
TraceHandler will pass the call from /debug/pprof/trace to pprof
Types ¶
type SystemInfo ¶
type SystemInfo struct {
ServerName string
Runtime string //运行时间
GoroutineNum string //goroutine数量
CpuNum string //cpu核数
UsedMem string //当前内存使用量
TotalMem string //总分配的内存
SysMem string //系统内存占用量
Lookups string //指针查找次数
Mallocs string //内存分配次数
Frees string //内存释放次数
LastGCTime string //距离上次GC时间
NextGC string //下次GC内存回收量
PauseTotalNs string //GC暂停时间总量
PauseNs string //上次GC暂停时间
}
func NewSystemInfo ¶
func NewSystemInfo(startTime time.Time) *SystemInfo