Skip to main content

Module table

Module table 

Source
Expand description

The process table: scan, cache, derive, sort, filter.

The central design point is the index indirection: sorting and filtering move only Vec<usize>, never the Row storage. See docs/DESIGN.md §6.

Structs§

Cache
Data that never changes for a live process, keyed by (pid, starttime).
Filter
Case-insensitive fixed-string filter, |-separated, matching htop’s F4.
ProcTable
State of the table across ticks.
Sort
A sort specification.
Stable
The cached identity of one process.
View
The derived, displayable view over the row storage.
Visibility
The complete visibility predicate: command filter, owner, kernel threads.

Enums§

Dir
Sort direction.

Functions§

apply_filter
Apply the current filter to produce the display order.
derive_cpu
Recompute per-process CPU% and MEM% from two samples.
find_next
Case-insensitive incremental search (F3). Unlike the filter, this only selects the next match.
sort_order
Sort order in place using field, without touching rows.