perf_object
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
) ]
| Header | atlperf.h |
| Project | EXE, DLL |
| Compiler | /D "_ATL_ATTRIBUTES" |
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.
See the example for the perf_counter attribute.
Attribute Context
| Applies to | class, struct |
| Repeatable | No |
| Required attributes | None |
| Invalid attributes | None |
For more information about the attribute contexts, see Attribute Contexts.