Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAllProcs ¶
InitAllProcs initialises the set of currently running processes in the system.
Types ¶
type Process ¶
type Process struct { Proc *proc.Process MemoryInfo *proc.MemoryInfoStat PageFault *proc.PageFaultsStat NumCtxSwitches *proc.NumCtxSwitchesStat Exe string Name string Status string Children []*proc.Process Gids []int32 CPUAffinity []int32 CreateTime int64 CPUPercent float64 Nice int32 NumThreads int32 MemoryPercent float32 IsRunning bool Foreground bool Background bool }
Process type contains as fields all the information extracted from the kernel.
func NewProcess ¶
NewProcess return a Process variable for a given PID
func (*Process) UpdateProcInfo ¶
func (p *Process) UpdateProcInfo()
UpdateProcInfo updates the fields for a process.
Click to show internal directories.
Click to hide internal directories.