Documentation
¶
Index ¶
- func GetCpuStats() *linux.CPUStat
- func GetDiskInfo() *linux.Disk
- func GetLoadAvg() *linux.LoadAvg
- func GetMemoryInfo() *linux.MemInfo
- type Stats
- func (s *Stats) CpuUsageSplit() (idle uint64, nonIdle uint64)
- func (s *Stats) DiskFree() uint64
- func (s *Stats) DiskTotal() uint64
- func (s *Stats) DiskUsed() uint64
- func (s *Stats) MemAvailableKb() uint64
- func (s *Stats) MemTotalKb() uint64
- func (s *Stats) MemUsedKb() uint64
- func (s *Stats) MemUsedPercent() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCpuStats ¶
func GetDiskInfo ¶
func GetLoadAvg ¶
func GetMemoryInfo ¶
Types ¶
type Stats ¶
type Stats struct {
MemStats *linux.MemInfo
DiskStats *linux.Disk
CpuStats *linux.CPUStat
LoadStats *linux.LoadAvg
// brought these out into their own fields since they are reported by the worker
TaskCount int
CpuUsage float64 // [0, 1]
Cores int
MemoryAllocated int64 // bytes reserved by the worker's running tasks
}
func (*Stats) CpuUsageSplit ¶
func (*Stats) MemAvailableKb ¶
func (*Stats) MemTotalKb ¶
func (*Stats) MemUsedPercent ¶
Click to show internal directories.
Click to hide internal directories.