[pywin32-checkins] pywin32/win32/Lib win32pdhutil.py,1.8,1.9
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-03-05 05:06:40
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9127 Modified Files: win32pdhutil.py Log Message: [ 1051453 ] win32pdhutil.browse broken (intentionally?) It was indeed unintentional! Index: win32pdhutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32pdhutil.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** win32pdhutil.py 25 Apr 2004 07:44:41 -0000 1.8 --- win32pdhutil.py 5 Mar 2005 05:06:31 -0000 1.9 *************** *** 133,141 **** def browse( callback = BrowseCallBackDemo, title="Python Browser", level=win32pdh.PERF_DETAIL_WIZARD): ! print "Virtual Bytes = ", FindPerformanceAttributesByName("python", counter="Virtual Bytes") ! print "Available Bytes = ", GetPerformanceAttributes("Memory", "Available Bytes") if __name__=='__main__': ShowAllProcesses() print "Browsing for counters..." browse() --- 133,144 ---- def browse( callback = BrowseCallBackDemo, title="Python Browser", level=win32pdh.PERF_DETAIL_WIZARD): ! win32pdh.BrowseCounters(None,0, callback, level, title) if __name__=='__main__': ShowAllProcesses() + # Show how to get a couple of attributes by name. + print "Virtual Bytes = ", FindPerformanceAttributesByName("python", counter="Virtual Bytes") + print "Available Bytes = ", GetPerformanceAttributes("Memory", "Available Bytes") + # And a browser. print "Browsing for counters..." browse() |