Skip to main content

Module system

Module system 

Source
Expand description

System-wide snapshots: CPU, memory, swap, load, uptime.

One immutable value per sample, handed to the UI atomically (docs/DESIGN.md §6).

Structs§

CpuTimes
DiskCounters
Host-wide disk byte counters, cumulative since boot.
MemInfo
The memory breakdown a platform reports.
MemoryClass
One named class of memory, as htop models it.
NetCounters
Host-wide network byte counters, cumulative since boot.
Psi
Host pressure stall information.
PsiLine
One PSI resource’s some and full averages.
PsiResource
Pressure stall information for one resource.
Rate
A throughput in bytes per second, split into its two directions.
SwapInfo
SystemSnapshot
One immutable sample handed from the sampler thread to the renderer.
TaskStats
Process-table counts, so meters can summarise processes without reaching into the table themselves.
ZramDevice
One compressed RAM block device (/sys/block/zram<N>).
ZramInfo
Every zram device on the machine, and their totals.