 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CpuPercentCurrProcess() float64
- func CpuPercentPid(sleepTime, pid int) float64
- type Process
- type StatsPid
- type SystemMonitorStruct
- func (sms *SystemMonitorStruct) GetMemory() error
- func (sms *SystemMonitorStruct) GetProcessors() error
- func (sms *SystemMonitorStruct) GetSwaps() error
- func (sms *SystemMonitorStruct) GetTemp() (err error)
- func (sms *SystemMonitorStruct) InitProcess(pid int) (err error)
- func (sms *SystemMonitorStruct) Write(filename string) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CpuPercentCurrProcess ¶
func CpuPercentCurrProcess() float64
func CpuPercentPid ¶
Types ¶
type Process ¶
type Process struct {
	Pid int
	// Get percent for oneshot usage
	CpuPercentGet func() float64
	// Handle retrieving percent over time using goroutine
	// until CpuPercentSetAutoRefresh(false)
	CpuPercentSetAutoRefresh func(_ bool)
	CpuPercentAuto float64
	Desc []*itemStatFileDescr
	// contains filtered or unexported fields
}
    func (*Process) GetProcess ¶
type SystemMonitorStruct ¶
type SystemMonitorStruct struct {
	Temp    []*device
	CPUs    *cpus
	Memory  *memory
	Swaps   *swaps
	Process *Process
	LinuxMeminfo,
	LinuxSwaps,
	LinuxHwmonDir,
	LinuxCpufreq,
	LinuxUptime,
	LinuxPidStat,
	LinuxPidStatus string // process/system information.
}
    func SystemMonitorStructNew ¶
func SystemMonitorStructNew() *SystemMonitorStruct
func (*SystemMonitorStruct) GetMemory ¶
func (sms *SystemMonitorStruct) GetMemory() error
GetMemory:
func (*SystemMonitorStruct) GetProcessors ¶
func (sms *SystemMonitorStruct) GetProcessors() error
GetProcessors:
func (*SystemMonitorStruct) GetTemp ¶
func (sms *SystemMonitorStruct) GetTemp() (err error)
func (*SystemMonitorStruct) InitProcess ¶
func (sms *SystemMonitorStruct) InitProcess(pid int) (err error)
GetProcess:
func (*SystemMonitorStruct) Write ¶
func (sms *SystemMonitorStruct) Write(filename string) error
 Click to show internal directories. 
   Click to hide internal directories.