Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMemPercentage ¶
func AddMemPercentage(m *MemStat)
AddMemPercentage calculates the ratio of used and total size of memory
func AddSwapPercentage ¶
func AddSwapPercentage(s *SwapStat)
AddSwapPercentage calculates the ratio of used and total swap size
func GetMemoryEvent ¶
GetMemoryEvent returns the event created from memory statistics
func GetSwapEvent ¶
GetSwapEvent returns the event created from swap usage
Types ¶
Click to show internal directories.
Click to hide internal directories.