[Tutor] Any way of monitoring a python program's memory utilization?

Terry Carroll carroll at tjc.com
Thu Jul 17 02:37:41 CEST 2008


On Thu, 17 Jul 2008, Alan Gauld wrote:

> With cygwin you should have top, vmstat and of course ps.
> All of these can monitor system status,. top being very similar to
> XPs Task Manager process view but in a text window. vmstat will
> not tell you process IDs, just report total usage. And ps is single
> shot so you could run it (via subprocess, say) after processing each
> 100 files or somesuch

ps doesn't show memory usage as far as I can tell (that may be a cygwin 
thing; I see some references online that suggest it can in some 
environments).  I don't have top or vmstat, but I'll look into those.

Thanks.



More information about the Tutor mailing list