Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Process ¶
type Process struct {
Pid string
Stat proc.Stat
Status proc.Status
CmdLine []string
Label string
PidNS string
Huser string
Hgroup string
}
func New ¶
New returns a new Process with the specified pid and parses the relevant data from /proc and /dev.
func (*Process) ElapsedTime ¶
ElapsedTime returns the time.Duration since process p was created.
func (*Process) SetHostData ¶
SetHostData sets all host-related data fields.
Click to show internal directories.
Click to hide internal directories.