You copied the Doc URL to your clipboard.

Adding Visual Annotate to your code

Streamline provides a set of macros that enable you to add images to the Timeline and Log views in your generated Analysis Reports.

To use the Visual Annotate feature to add images to the Timeline and Log views, follow these steps:


  1. Ensure gatord is running.
  2. Include the files streamline_annotate.h and streamline_annotate.c in your project.
  3. Add the ANNOTATE_SETUP macro to your code. It must be called before any other annotate macros are called.
  4. Add one ANNOTATE_DEFINE macro to your code. You must call ANNOTATE_DEFINE before calling ANNOTATE_VISUAL.
  5. Insert the ANNOTATE_VISUAL(data, length, str) macro into your code. Replace data with your image, length with the size of the data being written to the annotate file, and, optionally, str with a descriptive string to be included with the image.
  6. Compile and link your code using the -pthread option.
Was this page helpful? Yes No