Example:
auto tree = processTree(1); // init process tree
writeln("Total memory: ", tree.totalMemory());Builds a process tree starting from a specific PID.
Constructs a hierarchical tree of processes with the specified process as the root and all its descendants as children.
rootPid | The PID of the root process. |
Example:
auto tree = processTree(1); // init process tree
writeln("Total memory: ", tree.totalMemory());