Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoryMonitor ¶ added in v1.5.0
type MemoryMonitor interface {
MemUsedPct() float64 // memory usage percentage
SysMem() (int64, int64) // get the total amount of memory and remaining capacity (total, available (kB))
}
func GetMemMonitor ¶ added in v1.5.0
func GetMemMonitor() MemoryMonitor
get memory monitor singleton
Click to show internal directories.
Click to hide internal directories.