Apply this attribute to a class to define a performance monitor object.
The name of the performance object, as a resource ID. Not necessary if a name is provided in string form using the
namestring argument. help_res
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. namestring
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. helpstring
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. detail
Specifies the detail level desired for the object. Default is
PERF_DETAIL_NOVICE. Possible values are:
Indicates that this counter may be meaningful to most users. This is the most common counter detail level.
Indicates that this counter is likely to be useful only to advanced users.
Indicates that this counter is likely to be useful only to the most advanced users.
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. class
CPerfMon-derived class to which this object applies. By default, the next encountered name is used. maxinstnamelen
Specifies the maximum length of an instance name. Default is
For more information about the meaning of the requirements, see
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.
For more information about the attribute contexts, see