procstat

package
v0.0.0-...-7a50bc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL