Listing children processes

Mark Lawrence breamoreboy at
Wed Feb 29 00:41:16 CET 2012

On 28/02/2012 21:47, Arnaud Delobelle wrote:
> On 28 February 2012 21:39, Mihai Badoiu<mbadoiu at>  wrote:
>> On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert<clp2 at>  wrote:
>>> On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu<mbadoiu at>  wrote:
>>>> I'm trying to compute the total CPU load of an external process and it's
>>>> children.  (so I cannot use resource.getrusage)  For the load of the
>>>> process
>>>> I can just grab it from /proc/X/stat.  How do I get the CPU load of the
>>>> children processes?  Is there an easy way to get a list of the children
>>>> processes?
>>> Cheers,
>>> Chris
>> Looked at that before.  psutil doesn't do children.
>> --mihai
> Please don't top-post!  Also, psutil.Process.get_children() looks to
> me like it "does" children.

You are incorrect.  I've been told of by the BDFL for stating that 
people should not top post on any Python mailing list/news group.


Mark Lawrence.

More information about the Python-list mailing list