How can I get Memory/CPU stats for the python VM?

Terrel Shumway tshumway at
Fri Feb 2 14:42:32 CET 2001

I am running Python 2.0 on a Linux box that has an protected /proc/.

How can I find out how big the python process is and how much CPU time
it is taking?

The profile module is not enough:
    1) I need to get info from a deployed process (non-debug)
    2) It doesn't  give memory stats

Rebuilding the python interpreter or an extension module *is* feasible.

    -- Terrel

More information about the Python-list mailing list