Versions in this module Expand all Collapse all v0 v0.5.0 Oct 12, 2017 v0.4.0 Jun 12, 2017 v0.3.0 May 15, 2017 v0.2.1 Jun 13, 2017 v0.2.0 Feb 28, 2017 v0.1.0 Feb 24, 2017 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 + func IsNotImplemented(err error) bool + type ConcreteSigar struct + func (c *ConcreteSigar) CollectCpuStats(collectionInterval time.Duration) (<-chan Cpu, chan<- struct{}) + func (c *ConcreteSigar) GetFDUsage() (FDUsage, error) + 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 ErrNotImplemented struct + OS string + func (e ErrNotImplemented) Error() string + type FDUsage struct + Max uint64 + Open uint64 + Unused uint64 + func (self *FDUsage) 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 ProcEnv struct + Vars map[string]string + func (self *ProcEnv) Get(pid int) error + type ProcExe struct + Cwd string + Name string + Root string + func (self *ProcExe) Get(pid int) error + type ProcFDUsage struct + HardLimit uint64 + Open uint64 + SoftLimit uint64 + func (self *ProcFDUsage) 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 + Pgid int + Ppid int + Priority int + Processor int + State RunState + Tty int + Username string + 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{}) + GetFDUsage func() (FDUsage, error) + 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 + type Win32_OperatingSystem struct — windows/amd64 + LastBootUpTime time.Time + type Win32_Process struct — windows/amd64 + CommandLine string