Documentation
¶
Overview ¶
Package procstat parses /proc/<pid>/stat — the ONE parser muster-mirror has: the process table the locators and the paste guard read (internal/mirrorhost).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stat ¶
type Stat struct {
// Comm is the process name (field 2, without its parentheses).
Comm string
// State is field 3 ("S", "R", "Z" for a zombie, …).
State string
// PPID is field 4.
PPID int
// TTY is field 7, tty_nr: the controlling terminal's device number, 0
// for none (a process that called setsid, a daemon). 0 also when the
// line is too short to hold it.
TTY int
// Start is field 22, the start time in clock ticks since boot, as
// written: what tells a live process from a reused pid. "" when absent.
Start string
}
Stat is the little of a stat line muster-mirror reads.