Recently I’ve found myself testing an aplication in Froglogic’s Squish, using Python to create test scripts. Just the other day, the question of how much memory the program is using has come up, and I’ve found myself unable to answer it.
It seems reasonable to assume that there’s a way to query the os (windows 7) API for the information, but I’ve no idea where to begin. Does anyone know how I’d go about this?
Recently I’ve found myself testing an aplication in Froglogic’s Squish, using Python to create
Share
this answer has some code (for windows and unix):
Total memory used by Python process?
on win, you are checking
Win32_PerfRawData_PerfProc_Processand on linux it’s/proc/pid/status(orps)