Path prefix substitution in the Code view
Arm Streamline automatically locates and displays the source code in the Code view. If, however, the source files are not located in the same directory they were in during compilation, the Code view is not populated and you must set up path substitutions so that Arm Streamline can find the code.
In cases where Arm Streamline cannot locate the source, it displays a missing source file message in the source section of the Code view.
Figure 8-2 Missing source file
Follow these steps to set up path prefix substitutions:
There are two ways to start:
- Click the link under the missing file message. This displays a standard file dialog which allows you to locate the file. Doing this creates an entry in the Path Prefix Substitutions dialog to appropriately map the file.
- Click the Set Path Prefix Substitutions button in the toolbar. This opens the Path Prefix Substitutions dialog box.
Figure 8-3 Path Prefix Substitutions dialog box
- Click the plus symbol to add a new path prefix substitution.
- Enter valid paths in the Prefix and Replacement fields.
Click the Apply button.
Results: If the path given in the Replacement field contains code that lines up with the code used in the capture, Arm Streamline populates the view with your source code and the statistical overlay.