go-ps icon indicating copy to clipboard operation
go-ps copied to clipboard

Add Children(recursive) method

Open codeskyblue opened this issue 9 years ago • 1 comments

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?

codeskyblue avatar Sep 07 '16 10:09 codeskyblue

How can I achieve this? I basically want to have a "hierarchy" of all processes

fr3fou avatar Dec 22 '20 14:12 fr3fou