pstree: add API to only parse+create process tree off a given PID
Opened this issue · 0 comments
sbinet commented
right now, pstree.New()
will parse and build the process tree of the whole system.
we could consider adding a, say, func TreeOf(pid int) (*Tree, error)
function to only parse+build the process tree for a given parent process.