Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProcessStartTime ¶
GetProcessStartTime is deprecated. Use Stat(pid) and Stat_t.StartTime instead.
Types ¶
type Stat_t ¶
type Stat_t struct { // PID is the process ID. PID uint // Name is the command run by the process. Name string // State is the state of the process. State State // StartTime is the number of clock ticks after system boot (since // Linux 2.6). StartTime uint64 }
Stat_t represents the information from /proc/[pid]/stat, as described in proc(5) with names based on the /proc/[pid]/status fields.
Click to show internal directories.
Click to hide internal directories.