Helper subclass for win32pdhquery

Category: Python - Education

One of the few perks one can have when developing on Windows (at least NT or newer) is the use of the Performance Data Helper (the PDH can be found on Windows XP under the Control Panel at Administrative Tools -> Performance) for system statistics gathering. There is a bevy of counters available that can greatly help you measure the impact your code has on the current system. And luckily win32all provides a wrapper to create counters. The only drawback, though, is that the API is not the best in the world. This subclass helps with adding counters and formatting the output in a more usable fashion as either CSV or a dictionary that can be pickled. Date: 23 May, 2012


Helper Subclass - Helper For Win32pdhquery - Debugging Script - Helper - Subclass - Win32pdhquery

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

In most languages with closures, it is possible to change a closed-over value and have the change visible in other closures which share a reference to the same variable.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This function makes it easier to use the timeit module from the interactive interpreter.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script helps you in adding new format specifiers to the logging module.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script is a simple embedded multiline python interpreter built around raw_input().

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script acts like a stepping debugger to diagnose and fix your programs.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Since Python 2.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script allows a user to place debug messages, error messages and standard messages throughout a program.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Shed Skin is an experimental Python-to-C compiler.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


This script prints a nicely formatted overview of an object, including _everything_ in the object's `dir'.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All