Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
ATL Server
Categories
 Performance Monitoring Reference
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
ATL Server Library Reference 
Performance Monitoring Reference 

Atlperf.h contains attributes and macros that let you expose Performance Monitor counters from your applications and services.

Attributes

perfmon

Apply this attribute to a class to define a performance manager object.

perf_object

Apply this attribute to a class to define a performance monitor object.

perf_counter

Apply this attribute to a data member in a perf_object class to expose it as a performance counter.

Classes

CPerfMon Class

This class represents a performance monitor object manager.

CPerfObject Structure

This structure represents a performance monitor object.

CPerfLock Class

This class manages the lock state of performance monitor objects.

Macros

ATLPERF_DEFAULT_MAXINSTNAMELENGTH

Use this macro to define the maximum name length of object instance strings.

BEGIN_COUNTER_MAP

Use this macro to begin performance counter definition maps within CPerfObject-derived classes.

BEGIN_PERF_MAP

Use this macro to preface performance object map definitions.

CHAIN_PERF_OBJECT

Use this macro to attach a performance object class to a performance object management class (a class derived from CPerfMon).

DECLARE_PERF_OBJECT

Use this macro to declare a new performance object from within a CPerfObject-derived class.

DECLARE_PERF_OBJECT_EX

Use this macro to declare a new performance object from within a CPerfObject-derived class.

DECLARE_PERF_OBJECT_NO_INSTANCES

Use this macro to declare a new instanceless performance object from within a CPerfObject-derived class.

DEFINE_COUNTER

Use this macro to define performance monitor counters within CPerfMon-derived classes.

DEFINE_COUNTER_EX

Use this macro to define performance monitor counters within CPerfMon-derived classes.

END_COUNTER_MAP

Use this macro to terminate performance counter map definitions.

END_PERF_MAP

Use this macro to end a performance map.

PERFREG_ENTRY

Use this macro to register CPerfMon-derived classes with the Windows performance monitoring subsystem.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker