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:
gatordcreates the /dev/gator/annotate file.
- Include the streamline_annotate.h header file by adding the following include statement to your code: #include "streamline_annotate.h"
ANNOTATE_SETUPmacro to your code. It must be called before any other annotate macros are called.
ANNOTATE_DEFINEmacro to your code. You must call the following before using the
ANNOTATE_VISUALmacro into your code: ANNOTATE_VISUAL(data, length, str); Replace
datawith your image,
lengthwith the size of the data being written to the annotate file, and
strwith a descriptive string to be included with the image. Including a string is optional.
- Optional: Write an empty string to clear the annotation message for the thread.