bottom
bottom copied to clipboard
Filter process tree: only show a subtree by root PID
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_pid
pseudo-variable, e.g.root_pid=1234
. This may be inconsistent with the current implementation, asroot_pid
is 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 1234
orpid <- 1234
, where<-
is a possible substitution for∈
symbol.
This sounds like a good idea, I can look into adding something like that in the future.
+1 for monitor a single pid (subtree is better).