pub fn format_process_diagnostic( root_pid: u32, elapsed: Duration, tree: &[ProcessSnapshot], ) -> String