Documentation ¶
Overview ¶
Package sysmon measure the usage of system resources used by monitor.go
Index ¶
- func GetCPUUsage(pid string) (float64, float64, float64)
- func GetMemoryUsage(pid string) (float64, float64, float64)
- func GetNetworkIOUsage(pid string) (int, int)
- func GetSystemResourceUsage(pid string, initSysRes []float64, sysRes []float64) ([]float64, []float64)
- func LogSystemResourceUsage(sysOutput *os.File, sysRes []float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPUUsage ¶
GetCPUUsage get the CPU usage of the monitor program
func GetMemoryUsage ¶
GetMemoryUsage get the memory usage of the monitor program
func GetNetworkIOUsage ¶
GetNetworkIOUsage get the network IO usage of the monitor program
func GetSystemResourceUsage ¶
func GetSystemResourceUsage(pid string, initSysRes []float64, sysRes []float64) ([]float64, []float64)
GetSystemResourceUsage get the usage of system resources from the monitor program
func LogSystemResourceUsage ¶
LogSystemResourceUsage write the system usage into a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.