Create region markers in your application
To enable annotation for your application, you must add this line to one of your C++ classes:
Then, to denote sections of your code as a region, enclose it with
ANNOTATE_MARKER_STR statements as follows, replacing
<region_name> with a unique name for that section, to be used in the Performance Advisor report.
ANNOTATE_MARKER_STR("Region Start <region_name>"); // some code in your application... ANNOTATE_MARKER_STR("Region End <region_name>");
Note: Do not use the same region name multiple times.
When you generate a Performance Advisor report, the region names can be seen in the Frame rate analysis chart, and the report contains dedicated analysis sections for each region.