Documentation ¶
Index ¶
Constants ¶
View Source
const CPU_LIMIT = 20.0
View Source
const MEM_LIMIT = 1024 * 50
View Source
const OVERLAOD_LIMIT = 3
Variables ¶
This section is empty.
Functions ¶
func GetAgentCpuLoadWithTop ¶
func InitCgroup ¶
func InitCgroup() error
func StartPerfmon ¶
func StartPerfmon(pid int, interval uint, callback PerfCallback) *procStat
func StartSelfKillMon ¶
func StartSelfKillMon()
func StopSelfKillMon ¶
func StopSelfKillMon()
Types ¶
type PerfCallback ¶
Click to show internal directories.
Click to hide internal directories.