Intel® Advisor User Guide

ID 766448
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Insert Annotations in a Text Editor

To add Intel® Advisor annotations into your source files on a Linux* system, you can use any text editor. Intel® Advisor simplifies the process of locating where to add annotations.

NOTE:
In most cases, you do not need source annotations when using Intel® Advisor, except for the Suitability analysis of the Threading perspective. When analyzing your application with other perspectives, such as Vectorization and Code Insights or Offload Modeling, you can analyze all parts of your code automatically or use Intel Advisormark-up capabilities, which do not require you to recompile your application.

To add Intel® Advisor annotations:

  1. Open the Intel® Advisor GUI and the relevant project.
  2. In the File menu, select Options.
  3. Select Editor to display the Options - Editor dialog box. Follow the instructions to associate an editor with your source language(s).
  4. For your project, open the Survey Source window.
  5. Double-click a source line to display the specified editor opened to the corresponding source location.
  6. Use the annotation assistant pane in the lower part of the Survey Source window to select the type of annotation you want to add.
  7. Copy the selected annotations from the annotation assistant pane by clicking the button.
  8. Paste the copied annotations into your editor.
  9. You may need to move some annotation lines around.
  10. Repeat as needed for other annotations from step 4.

This enables you to quickly add annotations into the appropriate source files.