Memory Monitor

Timothy H elfinman at yahoo.com
Wed Jun 26 17:50:25 EDT 2002


In article <3D18E752.7A5A4EAC at bioreason.com>, "Mitch Chapman"
<Mitch.Chapman at bioreason.com> wrote:

> Cameron Laird wrote:
>> Mitch Chapman  <Mitch.Chapman at bioreason.com> wrote:
>> >        os.system("cat /proc/self/status | grep VmSize")
>> Rather than
>>   os.system("grep VmSize /proc/self/status")
>> ?
> 
> No, that's also concise =8)
> 

Concise, but it doesn't work. Then /proc/self/status is reporting the
memory usage for grep, not for the python interpreter+script.



More information about the Python-list mailing list