View annotations

You can view code annotations in the Timeline and Log views. The annotation type determines where the annotations are presented.

Timeline view

Annotations appear in several parts of the Timeline view:

  • String annotations appear as an annotation on the thread that generated the annotation

  • Visual annotations appear in their own chart

  • Marker annotations appear as bookmark icons above the charts

  • Custom counters annotations appear in their own chart

  • Groups and channel annotations appear as an annotation on the thread that generated the annotation

  • Custom Activity Map (CAM) counter annotations appear in their own CAM view

To see the annotation log for an area of interest, move the cross-section marker to this area then click Select annotation log closest to the cross-section marker index select_annotation_log, or press L on your keyboard. The Log view opens with the closest annotation to the cross-section marker selected.

Log view

The Log view lists all the annotations in the capture in chronological order. It also gives the thread and process that generated the annotation. If you assigned the annotation to a group and channel, the group and channel numbers are given. If you did not assign it to a group and channel, the Log view displays Group 0 and Channel 0 in these columns.

Marker annotations are indicated with a bookmark icon bookmark. Similarly, visual annotations are indicated with a camera icon camera. To see the image for a visual annotation, select the row for that annotation.

To filter the annotations, use the fields at the top of the view. You can enter regular expressions in these fields, except for the When and Duration fields. Use a dash to enter a range of values in the When and Duration fields. For example, 4-5 for four to five seconds inclusive, -5 for up to five seconds, or 5- for five seconds or later.

To see annotations in the Timeline view, select the annotations that you are interested in, right-click, and select the appropriate option. The Timeline view opens with the cross-section marker covering the selected annotations. To see functions that are related to annotations, select the annotations in the Log view, right-click, then select Select in Call Paths. The Call Paths view opens with the related functions selected.