| |||
| Home > The Code and Replay Views > The replay view > Replay view menu options | |||
In addition to the replay view itself, the addition of trace collection adds a number of new menu options to help you navigate to the data that interests you. These options appear atop the replay view and the code view, if you enabled the Collect Instruction Trace Replay checkbox.
The trace replay menubar options like Run, Run Backward, Stop, and the step options work like common debugger options in that they allow you to run your code to user-defined breakpoints and step through instructions in a variety of ways. The ARM Profiler is not a debugger, however, and the Run Forward and Run Backward options do not trigger any actual execution of code. They enable you to cycle through recorded trace data to get to areas of interest. This guide refers to these debugger-like tools as trace replay options.
The menubar includes the following trace specific menu options:
-
Sets all views so that the current trace position is highlighted
and visible. In the source panel, this option will highlight the
line of code associated with the current instruction. This option
is specific to the code view. It does not appear in the replay view.
&
-
Cycles backward and forward through the instructions until it hits
either a breakpoint or the first/last instruction in the trace.
You can use the stop button during this process to halt the search.
-
Stops the current progress of the two previous menu options, Run
Forward and Run Backward. The
trace indicator will halt at its current location.
&
-
Steps forward and backward through your code. Clicking this button moves
the current position in the replay view up or down one instruction
and updates the source and disassembly panels accordingly. The order
of execution is followed exactly.
&
-
Steps over forward and backward. The step over trace playback options work
similarly to the step forward and backward menu options, only they
will skip child functions when they are called and move the trace
position to the next function call at the same or higher level as
the current function. In this manner it steps over functions lower
in the hierarchy.
&
-
Steps out forward and backward. The Step Out Forward and Step Out Backward
commands enable you to travel up in the call chain hierarchy. Rather than
preceding to the next or previous instructions in the trace, these
commands will take you to the next or previous function that is
above it in the call hierarchy.
&
-
Jumps the trace position to the next or previous instance of the
currently active instruction in the trace. If there are no further
instances, they will take you to the beginning or the end of the
trace, depending on whether you selected forward or backward. For
example, if you have program loop that has executed 100 times, there
will be 100 instances of the current instruction. The jump buttons will
take you through all the loop positions one at a time. While the
trace index box changes value, the trace window itself does not
appear to move because the instructions surrounding current trace
position are the same. These jump options are purely for navigation
and do not honor breakpoints.