RE: Listing children processes

2012-02-29 Thread Prasad, Ramit
ouston, TX 77002 work phone: 713 - 216 - 5423 -- -Original Message- From: python-list-bounces+ramit.prasad=jpmorgan@python.org [mailto:python-list-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of Mark Lawrence Sent: Tuesday, February 28, 2012 7:38 PM To: python-list@pytho

Re: Listing children processes

2012-02-29 Thread Giampaolo Rodolà
Il 28 febbraio 2012 22:47, Arnaud Delobelle ha scritto: > On 28 February 2012 21:39, Mihai Badoiu wrote: >> On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert wrote: >>> >>> On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu wrote: >>> > I'm trying to compute the total CPU load of an external process an

Re: Listing children processes

2012-02-28 Thread Ben Finney
Mark Lawrence writes: > On 29/02/2012 00:16, Steven D'Aprano wrote: > > On Tue, 28 Feb 2012 23:41:16 +, Mark Lawrence wrote: > >> I've been told of by the BDFL for stating that people should not > >> top post on any Python mailing list/news group. > > > > He's the BDFL of Python, not of maili

Re: Listing children processes

2012-02-28 Thread Mark Lawrence
On 29/02/2012 00:16, Steven D'Aprano wrote: On Tue, 28 Feb 2012 23:41:16 +, Mark Lawrence wrote: I've been told of by the BDFL for stating that people should not top post on any Python mailing list/news group. He's the BDFL of Python, not of mailing list etiquette. Incorrect, I was to

Re: Listing children processes

2012-02-28 Thread Ben Finney
Mark Lawrence writes: > On 28/02/2012 21:47, Arnaud Delobelle wrote: > > Please don't top-post! Also, psutil.Process.get_children() looks to > > me like it "does" children. > > You are incorrect. Incorrect? The only factual statement Arnaud made was about ‘psutil’. > I've been told of by the B

Re: Listing children processes

2012-02-28 Thread Steven D'Aprano
On Tue, 28 Feb 2012 23:41:16 +, Mark Lawrence wrote: > I've been told of by the BDFL for stating that > people should not top post on any Python mailing list/news group. He's the BDFL of Python, not of mailing list etiquette. -- Steven -- http://mail.python.org/mailman/listinfo/python-lis

Re: Listing children processes

2012-02-28 Thread Dave Angel
On 02/28/2012 06:41 PM, Mark Lawrence wrote: On 28/02/2012 21:47, Arnaud Delobelle wrote: 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 Pyth

Re: Listing children processes

2012-02-28 Thread Mark Lawrence
On 28/02/2012 21:47, Arnaud Delobelle wrote: On 28 February 2012 21:39, Mihai Badoiu wrote: On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert wrote: On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu wrote: I'm trying to compute the total CPU load of an external process and it's children. (so I c

Re: Listing children processes

2012-02-28 Thread Arnaud Delobelle
On 28 February 2012 21:39, Mihai Badoiu wrote: > On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert wrote: >> >> On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu wrote: >> > I'm trying to compute the total CPU load of an external process and it's >> > children.  (so I cannot use resource.getrusage)  Fo

Re: Listing children processes

2012-02-28 Thread Mihai Badoiu
Looked at that before. psutil doesn't do children. --mihai On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert wrote: > On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu wrote: > > I'm trying to compute the total CPU load of an external process and it's > > children. (so I cannot use resource.getrusa

Re: Listing children processes

2012-02-28 Thread Chris Rebert
On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu 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 proce

Listing children processes

2012-02-28 Thread Mihai Badoiu
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 proce