Skip to main content

share

Function share 

Source
pub fn share(
    snap: &mut TowerSnapshot,
    top: usize,
    filter: &str,
    hidden: &dyn Fn(&str) -> bool,
)
Expand description

Make a snapshot fit to send to a paired device: drop the tasks hidden names (an agent hidden from paired devices) and their processes, keep the host rows matching every word of filter, then only the top busiest and top largest of those. Totals keep counting every process.