Re: Measureing memory used by a subprocess

2007-04-01 Thread Shane Geiger
Getting the pid: http://timgolden.me.uk/python/wmi_cookbook.html List all running processes import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name List all running notepad processes import wmi c = wmi.WMI () for process in c.Win32_Process (name=

Measureing memory used by a subprocess

2007-04-01 Thread Andrew McLean
I want to script the benchmarking of some compression algorithms on a Windows box. The algorithms are all embodied in command line executables, such as gzip and bzip2. I would like to measure three things: 1. size of compressed file 2. elapsed time (clock or preferably CPU) 3. memory used The f