Apply this attribute to a class to define a performance monitor object.
[ perf_object( name_res, help_res, namestring, helpstring, detail, no_instances, class, maxinstnamelen ) ]
- The name of the performance object, as a resource ID. Not necessary if a name is provided in string form using the namestring argument.
- A help string for the performance object, as a resource ID. Not necessary if the help string is provided in string form using the helpstring argument.
- The name of the performance object, as a string. Not necessary if a name is provided as a resource ID using the name_res argument.
- A help string for the performance object, as a string. Not necessary if a help string is provided as resource ID using the help_res argument.
- Specifies the detail level desired for the object. Default is PERF_DETAIL_NOVICE. Possible values are:
Detail level Description PERF_DETAIL_NOVICE Indicates that this counter may be meaningful to most users. This is the most common counter detail level. PERF_DETAIL_ADVANCED Indicates that this counter is likely to be useful only to advanced users. PERF_DETAIL_EXPERT Indicates that this counter is likely to be useful only to the most advanced users. PERF_DETAIL_WIZARD Indicates that this counter is not likely to be useful to any users.
- Specifies the performance object is instanceless if set to true. Default is false.
- Specifies the CPerfMon-derived class to which this object applies. By default, the next encountered name is used.
- Specifies the maximum length of an instance name. Default is ATLPERF_DEFAULT_MAXINSTNAMELENGTH.
|Applies to||class, struct|
For more information about the attribute contexts, see Attribute Contexts.
For more information about the meaning of the requirements, see Attribute Requirements.
This attribute is used at the class level to specify a class as a performance monitoring object by adding CPerfObject as a base class. See Adding an ATL Performance Monitor Object for instruction on using Visual Studio code wizards to add performance monitoring support to your project.
Performance Monitoring | PerformanceScribble Sample | PerformanceCounter Sample | perf_counter | perfmon | ATL Server Attributes | Performance Monitoring Overview | COM Attributes | Class Attributes | Performance Monitoring Reference | Attributes Samples