10.4 Adding Visual Annotate to your code

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

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

Procedure

  1. Ensure gatord is running. gatord creates the /dev/gator/annotate file.
  2. Include the streamline_annotate.h header file by adding the following include statement to your code: #include "streamline_annotate.h"
  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 the following before using the ANNOTATE_VISUAL macro.
  5. Insert the ANNOTATE_VISUAL macro into your code: ANNOTATE_VISUAL(data, length, str); Replace data with your image, length with the size of the data being written to the annotate file, and str with a descriptive string to be included with the image. Including a string is optional.
  6. Optional: Write an empty string to clear the annotation message for the thread.
Non-ConfidentialPDF file icon PDF versionARM DUI0482M
Copyright © 2010-2013 ARM. All rights reserved.