Expand description
Front-end helpers shared by the TUI and the GUI: graph history, process table sorting/filtering joined with GPU usage, and small naming helpers.
Nothing here depends on a UI toolkit.
Structs§
- History
- Fixed-size history of samples, newest last.
- Metric
History - Graph histories of one host, updated from each snapshot.
- Process
Query - How the process table is filtered and sorted.
- Process
Row - One row of the process table: the process plus its GPU usage.
Enums§
- SortKey
- Columns the process table can be sorted by.
Constants§
- HISTORY_
LEN - Number of samples kept for graphs (wider than any realistic terminal in braille dots: 2 samples per cell).
Functions§
- default_
interface - Picks the physical interface with the most traffic so far.
- is_
virtual_ interface - Returns true for container bridges, veth pairs and loopback, which are skipped when choosing and listing interfaces.
- process_
rows - Processes of
snapshotafter filtering and sorting, joined with GPU usage. - signal_
name - Name of a signal as shown to the user.