Trace view

When the trace has been captured the debugger extracts the information from the trace stream and decompresses it to provide a full disassembly, with symbols, of the executed code.

This view shows a graphical navigation chart that displays function executions with a navigational timeline. In addition, the disassembly trace shows function calls with associated addresses and if selected, instructions. Clicking on a specific time in the chart synchronizes the disassembly view.

In the left-hand column of the chart, percentages are shown for each function of the total trace. For example, if a total of 1000 instructions are executed and 300 of these instructions are associated with myFunction() then this function is displayed with 30%.

In the navigational timeline, the color coding is a “heat” map showing the executed instructions and the amount of instructions each function executes in each timeline. The darker red color showing more instructions and the lighter yellow color showing less instructions. At a scale of 1:1 however, the color scheme changes to display memory access instructions as a darker red color, branch instructions as a medium orange color, and all the other instructions as a lighter green color.

Figure 40. Trace view

Trace view

The Trace view might not be visible by default. To add this view:

  1. Ensure that you are in the DS-5 Debug perspective.

  2. Select Window → Show View to open the Show View dialog box.

  3. Select Trace view.

Show/hideToolbar and context menu options

The following options are available from the toolbar or context menu:

Refresh

Refresh the view.

Show Next Match

Move the focus of the navigation chart and disassembly trace to the next matching occurence for the selected function or instruction.

Show Previous Match

Move the focus of the navigation chart and disassembly trace to the previous matching occurence for the selected function or instruction.

Don’t mark other occurences - click to start marking, Mark other occurences - click to stop marking

When function trace is selected, mark all occurrences of the selected function with a shaded highlight. This is disabled when instruction trace is selected.

Showing instruction trace - click to switch to functions, Showing function trace - click to switch to instructions

Toggle the disassembly trace between instruction trace or function trace.

Export Trace Report

Display the Export Trace Report dialog box to save the trace data to a file.

Switch between navigation resolutions

Change the timeline resolution in the navigation chart.

Switch between alternate views

Change the view to display the navigation chart, disassembly trace or both.

Freeze Data

Toggle the freezing of the data in the view.

New Trace View

Displays a new instance of the Trace view.

Focus Here

At the top of the list, displays the function being executed in the selected time slot. The remaining functions are listed in the order that they are executed after the selected point in time. Any functions that do not appear after that point in time are placed at the bottom and ordered by total time.

Order By Total Time

Displays the functions ordered by the total time spent within the function. This is the default ordering.

View Menu

The following View Menu options are available:

Copy

Copy the selected instruction trace.

Set Maximum Instruction Depth

Displays a dialog box where you can enter the maximum number of instructions to display in the disassembly trace.

Index From Start

Numbers each decoded instruction in the buffer from the start.

Index From Middle

Numbers each decoded instruction in the buffer from the middle.

Index From End

Numbers each decoded instruction in the buffer from the end.

Show in Disassembly

Displays the Disassembly view starting at the address of the selected instruction.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446D
Non-ConfidentialID011411