Documentation ¶
Index ¶
- Constants
- func CpuProfiling(s int64)
- func FormatMemStats(m1, m2 *runtime.MemStats) string
- func GcStats() string
- func MemStats() string
- func MemStats2() string
- func RuntimeStats(d time.Duration, f func(string))
- func WriteBlock()
- func WriteGoroutine()
- func WriteHeap()
- func WriteMutex()
- func WriteThreadCreate()
- type DeployFunc
- type FindFunc
- type Helper
- type PerfFunc
- type StatusFunc
- type UpdateFunc
Constants ¶
View Source
const ProfDumpBackupDir = "./prof"
View Source
const ProfDumpDir = "prof"
Variables ¶
This section is empty.
Functions ¶
func CpuProfiling ¶
func CpuProfiling(s int64)
func FormatMemStats ¶
func RuntimeStats ¶
get runtime stats,contained goroutine numbers,gc pause,heap objects,heap alloc and malloc
func WriteBlock ¶
func WriteBlock()
func WriteGoroutine ¶
func WriteGoroutine()
func WriteMutex ¶
func WriteMutex()
func WriteThreadCreate ¶
func WriteThreadCreate()
Types ¶
type DeployFunc ¶
type Helper ¶
type Helper struct { Host int `inject:"helperHost"` Updater UpdateFunc Finder FindFunc Perfer PerfFunc Stater StatusFunc Deployer DeployFunc // contains filtered or unexported fields }
type StatusFunc ¶
type StatusFunc func() string
type UpdateFunc ¶
Click to show internal directories.
Click to hide internal directories.