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


Groups > comp.lang.python > #21004

Re: Listing children processes

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.081
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'compute': 0.09; 'am,': 0.12; 'cc:name:python list': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cheers,': 0.20; 'trying': 0.21; 'header:In-Reply- To:1': 0.22; 'feb': 0.22; 'received:209.85.220': 0.25; 'cc:2**0': 0.26; 'load': 0.26; 'url:code': 0.28; "i'm": 0.28; 'message- id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; '(so': 0.30; 'chris': 0.30; 'tue,': 0.32; 'list': 0.32; 'there': 0.33; 'external': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.39; 'cannot': 0.39; 'easy': 0.60; 'header:Received:6': 0.61; 'total': 0.61; 'url:p': 0.62; 'grab': 0.66; '10:33': 0.84; 'sender:addr:chris': 0.84
Received-SPF pass (google.com: domain of chris@rebertia.com designates 10.52.90.20 as permitted sender) client-ip=10.52.90.20;
Authentication-Results mr.google.com; spf=pass (google.com: domain of chris@rebertia.com designates 10.52.90.20 as permitted sender) smtp.mail=chris@rebertia.com; dkim=pass header.i=chris@rebertia.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SRaF+3tioADoblFolxS8FsWiC4xnWJx7yMgDkMqxpcQ=; b=eo1DJB8J1n7W9pH7DeU8QKnEeUOwz2ZcyuAPZiWhCfdIpx9k3wA5SieY70Rm5JX/1N 750cQVl2pPdb29rJ1Vne8NxEMIOfBp5XFkodcMAtJcih1RUyOR7sny+IOS8LOKhKiHbU p97iV4+vmWwibos6xlYQqhSFTJfZkL/i3v5ZE=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <CAGGWHE6ckudKzbBmg=+MyjuDRFE7VLbxL682G+ajcyOBReFX=Q@mail.gmail.com>
References <CAGGWHE6ckudKzbBmg=+MyjuDRFE7VLbxL682G+ajcyOBReFX=Q@mail.gmail.com>
Date Tue, 28 Feb 2012 13:35:47 -0800
X-Google-Sender-Auth Z0uFSUay1CW15wfGhUeljr0UG4Y
Subject Re: Listing children processes
From Chris Rebert <clp2@rebertia.com>
To Mihai Badoiu <mbadoiu@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Gm-Message-State ALoCoQnKhA5z3xQTEWD+1onQsrCcktBcjEFMJmQ3qaQdKldkPQ7oLuLanEW5OB9kowj40slhfqVn
Cc Python list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.260.1330464950.3037.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1330464950 news.xs4all.nl 6917 [2001:888:2000:d::a6]:35934
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:21004

Show key headers only | View raw


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

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


Thread

Re: Listing children processes Chris Rebert <clp2@rebertia.com> - 2012-02-28 13:35 -0800

csiph-web