The Code view helps you to identify function-level hot spots, at source and disassembly levels. If you have used the caliper controls to filter data in the Timeline view, the sampling data in the Code view reflects this selection.
When you open the Code view, your source code is shown with some color-coded statistics to help you identify functions that are causing performance issues.
Source code is only available for images in which the selected function is located, and if the image contains debug symbols. See Generate debug information for more information.
In Call Paths view or Functions view, right-click on a function and choose Select in code from the context menu.
If the source code is located in a different directory than when your application was compiled, you must redirect the file path so that Streamline can find the code. See Troubleshooting missing source files for more information.
Select your source code to highlight related instructions in the disassembly panel.
Click the first row, then drag your mouse across a range of rows.
To select a single row of code, simply click it.
To select multiple rows of code, click the first row and press Ctrl to select more individual rows. Alternatively, click the first row, then press Shift and click the last row of the series.
To view the disassembly, click Toggle
to open the disassembly panel.
The instructions that are related to the code you selected in the Code view are shown in the disassembly panel.
Note
Selecting a single line of disassembly selects all the instructions that relate to that single line of source code. You can use function tags to highlight all instruction lines that are associated with a single function.
Sometimes, the selected lines of source code or disassembly contain too many rows to fit in the current window. To see the hidden rows of code, select the More indicators.
Find and select a specific function to analyze it further:
Click Recently selected functions
, and choose a function from a list.
Enter a string in the Find field located just below the toolbar, and press Enter to cycle through the matching functions.
If your capture contains PC sample sources, select a source from the first list, and then choose a counter to focus your analysis on that area.
To open the source file in your preferred editor and update your source code, click Edit Source
.
After you have edited your source code, capture the profile again to compare the performance of your application. See Starting a capture for help with capturing a profile.