Skip to main content

Module view

Module view 

Source
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.
MetricHistory
Graph histories of one host, updated from each snapshot.
ProcessQuery
How the process table is filtered and sorted.
ProcessRow
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 snapshot after filtering and sorting, joined with GPU usage.
signal_name
Name of a signal as shown to the user.