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=
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