Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetIOCounters ¶
func NetIOCounters(pernic bool) ([]net.IOCountersStat, error)
Types ¶
type CPUInfoStat ¶
func CPUPercent ¶
func CPUPercent() (*CPUInfoStat, error)
type MemoryInfoStat ¶
func VirtualMemory ¶
func VirtualMemory() (*MemoryInfoStat, error)
type Process ¶
type Process interface { CPUPercent() (*CPUInfoStat, error) VirtualMemory() (uint64, error) Stop() }
func NewProcess ¶
type Util ¶
type Util interface { Start() Stop() CPUCounts(logical bool) (float64, error) CPUPercent() (*CPUInfoStat, error) DiskUsage(path string) (*disk.UsageStat, error) VirtualMemory() (*MemoryInfoStat, error) NetIOCounters(pernic bool) ([]net.IOCountersStat, error) Process(pid int32) (Process, error) }
var DefaultUtil Util
Click to show internal directories.
Click to hide internal directories.