Adding Annotations into Your Source Code

You can add Intel Advisor annotations in your source code by:

  • Copying annotations with the annotation assistant in the Survey Report window, Survey Source window, or the No Data message. Use the annotation assistant to copy the main annotations for parallel sites, tasks, and locks. For example, the annotation assistant appears in the lower part of the Survey Report window in the Assistance tab.

  • On Windows* OS only: When using the Visual Studio* code editor, you can use the Annotation Wizard to select an annotation type and add the annotations and their arguments into your code. You can use the Annotation Wizard to add parallel site, task, lock, pause/resume data collection, and special-purpose annotations.


If your sources include huge source files that contain annotations, be aware that only the first 8 MB of each file will be parsed for annotations. If not all of your annotations are being parsed in such huge source files, consider breaking each huge source file into several source files.

For more complete information about compiler optimizations, see our Optimization Notice.