How to get memory and CPU status of a particular process

Paul Rudin paul.nospam at rudin.co.uk
Tue Feb 23 02:16:46 EST 2010


Chris Rebert <clp2 at rebertia.com> writes:

>> On Tue, Feb 23, 2010 at 9:18 AM, R. P. Janaka <rpjanaka at gmail.com> wrote:
>>> Hi all,
>>>
>>> Is there a way to get system memory consumption and CPU consumption in a
>>> platform independent way, using python...?
>>>
>>> Basically my requirement is, get the memory status and CPU status of a
>>> particular process. If there is a way to get memory info and CPU info by
>>> just giving the process ID, that is exactly what I need to do :)
>>> Is this possible with python..?
>
> Given Turing-completeness, one should more precisely ask whether there
> is already a library for doing something in Python rather than whether
> something is possible with Python.

Turing-completeness is irrelevant to questions like getting memory and
CPU info for a process. These are not issues of computability...



More information about the Python-list mailing list