Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NumCPU = runtime.NumCPU()
Functions ¶
func GetSystemUsePercentage ¶
func GetSystemUsePercentage() float64
GetSystemUsePercentage returns the average CPU usage percentage of the system. Percentage is expressed as [0, 1] where 0 means no usage and 1 means full usage of all cores. The average is calculated over a period of time.
func GetUsePercentage ¶
GetUsePercentage returns the average CPU usage percentage of the process. Percentage is expressed as [0, #CPU] where 0 means no usage and #CPU means full usage of all cores. The average is calculated over a period of time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.