Versions in this module Expand all Collapse all v0 v0.2.0 Oct 27, 2015 v0.1.9 Sep 22, 2015 v0.1.8 Sep 4, 2015 Changes in this version + const RunStateIdle + const RunStateRun + const RunStateSleep + const RunStateStop + const RunStateUnknown + const RunStateZombie + var Procd string — linux/amd64 + func FormatPercent(percent float64) string + func FormatSize(size uint64) string + type ConcreteSigar struct + func (c *ConcreteSigar) CollectCpuStats(collectionInterval time.Duration) (<-chan Cpu, chan<- struct{}) + func (c *ConcreteSigar) GetFileSystemUsage(path string) (FileSystemUsage, error) + func (c *ConcreteSigar) GetLoadAverage() (LoadAverage, error) + func (c *ConcreteSigar) GetMem() (Mem, error) + func (c *ConcreteSigar) GetSwap() (Swap, error) + type Cpu struct + Idle uint64 + Irq uint64 + Nice uint64 + SoftIrq uint64 + Stolen uint64 + Sys uint64 + User uint64 + Wait uint64 + func (cpu *Cpu) Total() uint64 + func (cpu Cpu) Delta(other Cpu) Cpu + func (self *Cpu) Get() error + type CpuList struct + List []Cpu + func (self *CpuList) Get() error + type FileSystem struct + DevName string + DirName string + Flags uint32 + Options string + SysTypeName string + TypeName string + type FileSystemList struct + List []FileSystem + func (self *FileSystemList) Get() error + type FileSystemUsage struct + Avail uint64 + Files uint64 + Free uint64 + FreeFiles uint64 + Total uint64 + Used uint64 + func (self *FileSystemUsage) Get(path string) error + func (self *FileSystemUsage) UsePercent() float64 + type LoadAverage struct + Fifteen float64 + Five float64 + One float64 + func (self *LoadAverage) Get() error + type Mem struct + ActualFree uint64 + ActualUsed uint64 + Free uint64 + Total uint64 + Used uint64 + func (self *Mem) Get() error + type ProcArgs struct + List []string + func (self *ProcArgs) Get(pid int) error + type ProcExe struct + Cwd string + Name string + Root string + func (self *ProcExe) Get(pid int) error + type ProcList struct + List []int + func (self *ProcList) Get() error + type ProcMem struct + MajorFaults uint64 + MinorFaults uint64 + PageFaults uint64 + Resident uint64 + Share uint64 + Size uint64 + func (self *ProcMem) Get(pid int) error + type ProcState struct + Name string + Nice int + Ppid int + Priority int + Processor int + State RunState + Tty int + func (self *ProcState) Get(pid int) error + type ProcTime struct + StartTime uint64 + Sys uint64 + Total uint64 + User uint64 + func (self *ProcTime) FormatStartTime() string + func (self *ProcTime) FormatTotal() string + func (self *ProcTime) Get(pid int) error + type RunState byte + type Sigar interface + CollectCpuStats func(collectionInterval time.Duration) (<-chan Cpu, chan<- struct{}) + GetFileSystemUsage func(string) (FileSystemUsage, error) + GetLoadAverage func() (LoadAverage, error) + GetMem func() (Mem, error) + GetSwap func() (Swap, error) + type Swap struct + Free uint64 + Total uint64 + Used uint64 + func (self *Swap) Get() error + type Uptime struct + Length float64 + func (self *Uptime) Format() string + func (self *Uptime) Get() error