7.5. The Source Code Frame

The frame to the right in the report displays the source code of the application.

Source Code with Collapsed Lines

Figure 7.23. Source Code with Collapsed Lines


Clicking on a source code line reference or on a file name in the Files tab opens a new page in the source code frame. As can be seen in Figure 7.23, “Source Code with Collapsed Lines”, the source code is annotated. There are three columns showing the line number, the percentage of all the cache line fetches of the application directly or indirectly caused by the line, and the source code itself.

Lines that significantly affect the memory behavior are highlighted in yellow and the line number column of each line in the currently selected loop is highlighted in purple. Each significant line also has a set of icons representing the issues it is causing, and there is and expand button you can click to show more information about the line.

Source Code with Expanded Lines

Figure 7.24. Source Code with Expanded Lines


Clicking on the expand button shows more information about each significant machine code instructions belonging to the line, as seen in Figure 7.24, “Source Code with Expanded Lines”. If the function is called from different places and Freja separates the different call stacks, the statistics for each instruction is display separate for each call stack, and the different call stacks are shown in alternating green shades.

The statistics shown for each instruction are: