Listing children processes

Mihai Badoiu mbadoiu at gmail.com
Tue Feb 28 13:33:07 EST 2012


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?

thanks,

--mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120228/6c2c1227/attachment.html>


More information about the Python-list mailing list