Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Children(recursive) method #18

Open
codeskyblue opened this issue Sep 7, 2016 · 1 comment
Open

Add Children(recursive) method #18

codeskyblue opened this issue Sep 7, 2016 · 1 comment

Comments

@codeskyblue
Copy link

codeskyblue commented Sep 7, 2016

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?

@fr3fou
Copy link

fr3fou commented Dec 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants