Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateCpuPercent ¶
func GetProcessCpuInterval ¶
Types ¶
type CpuTimes ¶
func GetProcessCpuTimes ¶
type OSMemStats ¶
type OSMemStats struct { SwapTotal uint64 SwapUsed uint64 SwapFree uint64 SwapUsedPercent float64 SwapIn uint64 SwapOut uint64 MemTotal uint64 MemAvailable uint64 MemUsed uint64 MemUsedPercent float64 MemBuffers uint64 MemCached uint64 }
func GetOsMemStats ¶
func GetOsMemStats() (OSMemStats, error)
type ProcessStats ¶
type ProcessStats struct { FirstErr bool MemPercent float64 GetMemPerErr bool GetMemErr bool MemRSS uint64 MemVMS uint64 MemSwap uint64 GetIoErr bool IoRdcnt uint64 IoWrcnt uint64 IoRdBytes uint64 IoWrBytes uint64 GetCtxErr bool CtxSwitchVoluntary int64 CtxSwitchInvoluntary int64 }
func GetProcessStatsWithoutCpu ¶
func GetProcessStatsWithoutCpu(pid int32) (ProcessStats, error)
Click to show internal directories.
Click to hide internal directories.