Annotate your code

Add event annotations and software-generated counters to your code, which are propagated into the Timeline view and Log view.

Annotation macros are defined in streamline_annotate.h and gator_annotate.h.

There are two types of annotations, user space annotations and kernel space annotations:

User space annotations

User space annotations are for annotating your application. Streamline supports the following types of user space annotations:

  • String

  • Visual

  • Marker

  • Custom counters

  • Groups and channels

  • Custom Activity Maps (CAM)

Kernel space annotations

Kernel annotations send annotations to gatord from a kernel context, using Linux ftrace as the transport mechanism. Kernel annotations are defined in <install_directory>/sw/streamline/gator/trace/event/gator_annotate.h.

Contents

Related information