package
0.1.1
Repository: https://github.com/godevsig/glib.git
Documentation: pkg.go.dev

# Functions

NewPidInfo returns a PidInfo of the pid If pid = 0, returns self info If pid < 0, returns all pids info checkLevel is a flag that may contain CheckSingle CheckThread and/or CheckChild.
NewSysInfo returns overall system cpu usage info including idle, and more...
Pidof finds the process id(s) of the named programs.

# Constants

CheckLevles controls if we need to check threads and/or children.
check children of the process.
check PSS mem, high CPU overhead, often needs root privilege.
check the process.
check threads of the process.

# Structs

PidInfo has infomation extracted from corresponding procfs.
ProcessStat is process statistics.
SysInfo includes overall system tick information.
TidInfo represents a thread.