Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Trees ¶
Trees reports the combined CPU and resident memory of each requested process and all of its descendants, from a single ps invocation. tmux pane pids are shells whose real work happens in child processes, so a tree sum is the only honest number. ps %cpu is a recent decaying average, which suits a 2s poll.
Types ¶
type Snapshot ¶
type Snapshot struct {
CPUPercent float64
CPUOK bool
MemUsed uint64
MemTotal uint64
MemPercent float64
MemOK bool
SwapUsed uint64
SwapTotal uint64
SwapPercent float64
SwapOK bool
DiskUsed uint64
DiskTotal uint64
DiskPercent float64
DiskOK bool
NetSent uint64
NetRecv uint64
NetOK bool
CPUTemp float64
CPUTempOK bool
GPUTemp float64
GPUTempOK bool
SoCTemp float64
SoCTempOK bool
}
Click to show internal directories.
Click to hide internal directories.