Expand description
The /proc backend. Compiles on any unix because the IO layer is
parameterised by a root path; only Linux has a live /proc to point it at.
Linux /proc and /sys access.
Split into two layers:
parse— pure functions over&[u8], unit-testable against fixturesscan— the IO layer, using thread-local scratch buffers
Both are configured by a root path so tests can point at a fixture tree
instead of the live /proc.
Modules§
- delayacct
- Delay accounting via
TASKSTATSgeneric netlink. - fsops
- Filesystem helpers that are not on the per-tick hot path.
- parse
- Pure
/procparsers. - scan
- Reading
/procand/sys. - system
- The Linux sampler: turns
/procinto aSystemSnapshot.
Structs§
Functions§
- cpu_
count - Number of online CPUs, used to normalize CPU%.