pub fn build_pstree(procs: &[ProcessInfo]) -> Vec<PsTreeEntry>Expand description
Build a process tree from a flat process list.
Produces a depth-annotated flat list suitable for indented display. Processes whose parent PID is 0 or whose parent is not in the list are treated as roots. Children are sorted by PID within each parent.