package
0.0.0-20241030154441-ed0afeddb1b5
Repository: https://github.com/bazelbuild/reclient.git
Documentation: pkg.go.dev

# Functions

New a PsutilSampler instance with current process's pid.
Sample returns the current resource usage data by performing a new measurement.

# Constants

These are the names of the proxy's resource usage stats.
These are the names of the proxy's resource usage stats.
MemRes is a subset of MemVirt, includes the non-swapping physical memory the process is actively using only.
MemVirt is the total amount of virtual memory used by the current process, includes physically memory used by code, data and libraries, also pages have been swapped out and pages have been mapped but not used yet.

# Structs

PsutilSampler is an instance that reports the usage of OS resource.

# Interfaces

Sampler is an interface that can provide the sampled system resource usage.