The source view shows the code in one of several formats: source, disassembly, or a mix of the two. You can access these display formats using the source view toolbar.
The main column in this view is the source column that contains the
source or disassembly code. The area to the left of the column is used
for indicators such as bookmarks
.
The columns on the left and right of the source code provide additional information.
The left side contains columns with static information:
Column |
Description |
---|---|
Address |
The address of the code line. The address can be relative virtual (RVA), virtual or the segment/offset. |
Penalties and Warnings Flag (!) |
Indicates that this line has a penalty. Check the Penalty and Warning column on the right side for the type of penalty/warning. To view the information on static assembly penalties and warnings, see the Reference Guide. |
Line Number |
The line number of the high level programming language source code line. This column is available in the Disassembly view only when the line number information is available. |
You can add other columns such as decoder groups and labels, which do not appear by default. See configuring the source view for information on how to hide/show columns.
The number of columns on the right side and their content depend on the data collected during the Activity run, events for the sampling collector, calls and call sites for the call graph collector.
See source-view pop-up menu for information on how to hide/show columns/panes and how to access other features.
1. Create an Activity and configure the data collector. For example:
>vtl activity -c sampling -o "-cal no" -app vtunedemo run
In this example, the VTune analyzer runs the sampling Activity using the default Instructions Retired and Clockticks events to monitor the vtunedemo application.
2. View the source code. For example:
>vtl view -code -mn /home/test/vtunedemo -rva 0x113 -asm
In this example, the VTune analyzer displays the source code of the module vtunedemo around the relative virtual address 0x113:
The output is the following:
Legend
Ev1 = Instructions Retired samples
Ev2 = Clockticks samples
Address Line Number Ev1 Ev2 Source
Address Ev1 Ev2 Label Opcode ICACHE Flag Decoder Group Pen & Warn Flag Source u-ops Pen & Warn Jump Dest Seg ProcessName
0x278 0 S_0: 55 0x71 0x6a pushl %ebp 0x3
0x279 0 0 89E5 0x71 0x6e movl %esp, %ebp 0x1
0x27b 0 0 83EC08 0x71 0x70 subl $0x8, %esp 0x1
0x27e 0 0 E881000000 0x71 0x6a call .+0x86 0x4 0xb
0x283 0 0 B_b: 90 0x71 0x70 nop 0x1
0x284 0 0 E8E7000000 0x71 call .+0xec 0x4 0xb
...
Penalties and Warnings flag is not displayed in the command-line view.
Click the following buttons for more information about source view: