[Pysys-commits] SF.net SVN: pysys:[1055] branches/post-1.3.0
Brought to you by:
ben-spiller,
moraygrieve
From: <ben...@us...> - 2018-11-08 18:08:05
|
Revision: 1055 http://sourceforge.net/p/pysys/code/1055 Author: ben-spiller Date: 2018-11-08 18:08:01 +0000 (Thu, 08 Nov 2018) Log Message: ----------- I noticed calling startProcessMonitor() was taking more than 2 minutes, and found the current implementation enumerates every single thread of every process, in a weird attempt to calculate "% Processor Time"; this is unnecessary as there's a Process performance counter for that, and also incorrect as it ignroes threads that the process may start after the process monitor was added; also changed from win32pdh.PDH_FMT_LONG to win32pdh.PDH_FMT_LARGE since otherwise big integers overflow into negative ones (virtual mem usage was sjowing up negatvie on my machine) Modified Paths: -------------- branches/post-1.3.0/pysys/process/plat-win32/monitor.py branches/post-1.3.0/pysys-dist/pysys-release.txt branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_080/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |