pub fn shape_processes(
figures: &[ProcessFigures],
limits: MemoryLimits,
name_of: impl Fn(u32) -> Option<Named>,
) -> (Vec<GpuProcess>, Option<GpuOthers>)Expand description
The rows of the panel: AgentMux’s own processes and the biggest OTHERS_LISTED others, sorted by use and then
memory (AgentMux’s first where those are equal), and the rest of the others added up.
A row’s memory is what it holds on the card, and only where it holds none there, what it holds of the machine’s.
A figure over what the adapters have is the OS’s own mistake (it reports 113 GB for a compositor on a 12 GB card, and
23 TB for another process), and is not shown as a number: see MemoryLimits.