Documentation ¶
Index ¶
Constants ¶
View Source
const ( CPUPct = "CPU_pct" MemPct = "MEM_pct" // 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. MemVirt = "MEM_VIRT_mbs" // MemRes is a subset of MemVirt, includes the non-swapping physical memory // the process is actively using only. MemRes = "MEM_RES_mbs" )
These are the names of the proxy's resource usage stats.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PsutilSampler ¶
type PsutilSampler struct {
Sampler
}
PsutilSampler is an instance that reports the usage of OS resource.
Click to show internal directories.
Click to hide internal directories.