Memory Monitor
Cameron Laird
claird at starbase.neosoft.com
Tue Jun 25 17:39:50 EDT 2002
In article <3D1894B5.720EB7F7 at bioreason.com>,
Mitch Chapman <Mitch.Chapman at bioreason.com> wrote:
.
.
.
> inf = open("/proc/self/status", "r")
> print inf.read()
> inf.close()
>
>
>'course, you probably want more concise output, e.g.:
>
> os.system("cat /proc/self/status | grep VmSize")
.
.
.
Rather than
os.system("grep VmSize /proc/self/status")
?
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list