Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21005

Re: Listing children processes

References <CAGGWHE6ckudKzbBmg=+MyjuDRFE7VLbxL682G+ajcyOBReFX=Q@mail.gmail.com> <CAMZYqRSPe18XnoVzW8a1X3R8d9-8uMPG4ymQz44m=f4wnsY0qg@mail.gmail.com> <CAGGWHE66DJCE25T-BtqTeboo81fG=zip+fUO=nam6700d67v+g@mail.gmail.com>
Date 2012-02-28 21:47 +0000
Subject Re: Listing children processes
From Arnaud Delobelle <arnodel@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.262.1330465622.3037.python-list@python.org> (permalink)

Show all headers | View raw


On 28 February 2012 21:39, Mihai Badoiu <mbadoiu@gmail.com> wrote:
> On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert <clp2@rebertia.com> wrote:
>>
>> On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu <mbadoiu@gmail.com> 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?
>>
>> http://code.google.com/p/psutil/
>>
>> 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.

-- 
Arnaud

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Listing children processes Arnaud Delobelle <arnodel@gmail.com> - 2012-02-28 21:47 +0000

csiph-web