Selection Mode

The Selection Mode allows you to mark points in the function bars to measure the difference of cycles between those points. To mark a point in the bar:

  1. Click Selection Mode.
  2. Click on the bar where you want to mark the point.

    A yellow vertical line appears displaying the number of cycles at that point.

  3. Right-click another point in the bar.

    A red vertical line appears displaying the number of cycles at that point along with the difference of cycles between two marked points.

    Figure 1. Selection Mode to Measure Difference of Cycles Between Functions
    Selection Mode to Measure Difference of Cycles Between Functions

You might view a difference in the time cycles displayed in the Timeline and the Critical Code viewer. The difference is caused by the events in the functions (in your source code) that have no new timestamp. For timeline, any instruction that has no timestamp information is considered to take one CPU cycle.