go-ps
go-ps copied to clipboard
Add Children(recursive) method
method refs: http://pythonhosted.org/psutil/#psutil.Process.children
A ─┐
│
├─ B (child) ─┐
│ └─ X (grandchild) ─┐
│ └─ Y (great grandchild)
├─ C (child)
└─ D (child)
code
p.Children(false)
# return B, C, D
p.children(true)
# return B, X, Y, C, D
Can I make a pr?
How can I achieve this? I basically want to have a "hierarchy" of all processes