Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessInfo ¶
type ProcessInfo struct {
// CpuPercent is the average CPU percent of the latest 5 seconds (100% = 1 core). It is 0 in the first 5 seconds.
CpuPercent float64
// CpuThrottledPercent is the percent of CFS periods in the latest 5 seconds in which the cgroup was throttled
// by its CPU limit. 0 = not throttled. It is always 0 without a CPU limit, or when cpu.stat can not be read.
CpuThrottledPercent float64
// CpuThrottledMillis is the total time (milliseconds) the cgroup was throttled in the latest 5 seconds.
// The time of all threads is added, so it can be larger than 5000.
CpuThrottledMillis int64
MemorySize uint64
Threads int
Goroutines int
}
func GetProcessInfo ¶
func GetProcessInfo() ProcessInfo
Click to show internal directories.
Click to hide internal directories.