Documentation
¶
Overview ¶
Package processusage samples CPU time and resident memory for this process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
Sample reports unavailable measurements as nil. CPUPercent measures process CPU time against elapsed wall time: one busy core is 100 percent.
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
Sampler serializes reads and shares a sample for at least one second. It owns no workers or handles; CPU needs two successful reads before it is available.
Click to show internal directories.
Click to hide internal directories.