PyPerfMonManager = PerfMonManager(serviceName, seqPerfObTypes , mappingName , eventSourceName )

Creates a new PERF_OBJECT_TYPE object


serviceName : PyUnicode

The name of the service for which data is being provided.

seqPerfObTypes : [PyPERF_OBJECT_TYPE, ...]

A sequence of objects to use in the performance monitor. At this stage, len(seqPerfObTypes) must == 1.

mappingName=None : PyUnicode

The name of the mapping to open. This must be the same as the DLL name providing the information. If None, the serviceName is used.

eventSourceName=None : PyUnicode

The name used by the DLL for error messages in the registry. If None, the serviceName is used.


The application need not be a service, but it must have an entry in the Services section of the registry. This limits the performance monitor to being able to provide only one 'counter type', but still many counters within that type. See the documentation for the Performance Monitor API for more details.