Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants