Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessStats ¶
type ProcessStats struct { // The amount of accumulated CPU time in nanoseconds. CpuNs time.Duration // The amount of resident set memory allocated to the process in bytes. RssBytes int64 }
ProcessStats contains information specific to the process that was queried.
func GetProcessStats ¶
func GetProcessStats(pid int) (*ProcessStats, error)
GetProcessStats will return the ProcessStats object associated with the given PID. If it fails to load the stats, then it will return an error.
Click to show internal directories.
Click to hide internal directories.