get_process_tree
Retrieve a process tree showing parent-child relationships with CPU and private memory for a given process or the whole machine, excluding exited parents and false links from reused PIDs.
Instructions
The process tree: who started whom, with CPU and private memory, from a process down (or the whole machine). Parents that exited are left out; a reused PID does not make a false parent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | The process at the top; the whole machine when left out. | |
| depth | No | Levels below the top (default 6, at most 20). |