Filter process tree: only show a subtree by root PID
Author: singalenCreated Dec 18, 2020Updated May 6, 2026
Labelsfeature
Describe the feature request
In order to monitor a process that spawns extensive number of subprocesses, it would be really great to only display the root process' children.
Additional context/details
One of the ways to do so would be to extend process filter from #59.
- Option 1: introduce functions to the query language. Then, the query will look like
childof(1234); - Option 2: introduce
root_pidpseudo-variable, e.g.root_pid=1234. This may be inconsistent with the current implementation, asroot_pidis not a real value, but still a function of the root PID that we compare to. - Option 3: introduce a new operator instead of a function, e.g.
pid childof 1234orpid <- 1234, where<-is a possible substitution for∈symbol.
Source: ClementTsang/bottom