You copied the Doc URL to your clipboard.

Code view basics

The Code view helps with the discovery of function-level hot spots. It flattens statistics and displays them at the source and disassembly levels.

By default, the code view shows the source code next to color-coded statistics. To see both code and disassembly instructions, click the Disassembly view button to display the Disassembly view.

Figure 48. The Code view

The Code view

The Code view presents the percentage each source line or disassembly entry contributed to the total samples collected for the function.

Figure 49. The Totals panel

The Totals panel


All data in the Code view is dependent on the filtering selection in the Timeline view. If you have used the caliper controls to filter data in the Timeline view, the data in the Code view reflects this selection.

Code view selection behavior

Selecting code in the Code view highlights related instructions in the disassembly panel. This feature ignores coding comments.

Click an instruction in the disassembly panel to select all of the instructions that relate to a single line of source code. Click on a function label in the disassembly view to select all of the instructions and lines of code that make up that function.

To select multiple rows, hold down the mouse button and drag it across a range of rows. Selection behavior available in other applications is also present here. Hold down the shift key and select the first and last row of the series to select the entire sequence of rows. Hold down the control key if you want to select additional rows without selecting all of the rows in between.

If selected source code lines or disassembly instructions contain too many rows to fit in the bounds of the current window, small selection indicators appears on the right hand side of the Code view. If there are more selected rows than can fit in the view, the indicators show you how many more are present off screen.

Figure 50. The More indicator

The More indicator

Click the More indicator to see additional selected rows.

Locating missing source files

ARM Streamline automatically locates and displays the source code in the source view. If, however, the source files are not located in the same directory location they were in during compilation, the source view is not populated.

Figure 51. Missing source file

Missing source file

To populate the source view, you must locate the version of the source file used to create the analysis report. Click the link in the source view to open the Locate dialog box, for example:

Figure 52. Locate source dialog box

Locate source dialog box

Locate the source file, select it, and click the Open button. Streamline now populates the view with your source code and the statistical overlay. The Locate source dialog box is a standard file navigation window, and varies depending on your operating system.

The find command

To search your code and instructions for a function name or a hexadecimal instruction address, use the Find field, located just below the toolbar.

Figure 53. The Find field

The Find field

Enter a string and the field on the right hand side updates to show the current match, if there is one. Pressing the Enter key takes you to the first match in the code and subsequent presses of the Enter key cycles through all of the available matches.

Was this page helpful? Yes No