var ErrNotImplemented = errors.New("not implemented")
var prevCPULoadTimeStats cpu.TimesStat
"cache" of last CPU utilization stats for GetGoPsutilCPU to get more exact results and not having to sleep
var prevCPULoadTimeStatsLock sync.RWMutex
var prevCPULoadTimestamp time.Time
func CheckFolderExistsAndReadable(path string) bool
func GetGoPsutilCPU(interval time.Duration) ([]map[string]any, error)
Simulates "psutil" metric output. Assumes the result from last call as input, otherwise uses a 1s measurement
func GetGoPsutilDiskPG(DataDirs, TblspaceDirs []map[string]any) ([]map[string]any, error)
func GetGoPsutilDiskTotals() ([]map[string]any, error)
func GetGoPsutilMem() ([]map[string]any, error)
func GetLoadAvgLocal() ([]map[string]any, error)
func GetPathUnderlyingDeviceID(_ string) (uint64, error)
func goPsutilCalcCPUUtilization(probe0, probe1 cpu.TimesStat) float64