CodeAnalyst options controls how AMD CodeAnalyst displays profile data and its toolbar and how it finds source and debug information. These options are persistent and are effective across projects and sessions. They affect the CodeAnalyst application as a whole.
CodeAnalyst options are changed using the CodeAnalyst Options dialog box. The dialog box contains following tabs:
Open the CodeAnalyst Options dialog box by clicking the CodeAnalyst Options
icon
in the toolbar. Or you may open the CodeAnalyst Options dialog box by
selecting Tools > CodeAnalyst Options from the
pull-down menu.
The General tab controls the display of source code and disassembler instructions.
CodeAnalyst follows the usual Windows conventions for accepting or canceling changes to options. Clicking the Apply button activates the new options. Clicking the OK button activates the new options and closes the dialog box. Clicking the Cancel button closes the dialog box without applying changes.
If the Bypass Source (Disassembly Only) check box is selected, double-clicking a sample address in a module opens the Assembly View. Selecting the Alert when no source is available check box displays an alert message when CodeAnalyst cannot find the source for a module.
CodeAnalyst allows three different methods for aggregate data. Two modes are specifically designed to help analysis of in-line functions:
This is the default aggregation mode. When samples belong to an in-line instance, CodeAnalyst aggregates them into the caller function and uses blue text to identify the in-line instance together with in-line function name.
When samples belong to an in-line instance, CodeAnalyst aggregates them into each in-line instance. CodeAnalyst groups all in-line instances and lists them together under the in-line function, which is presented in red text.
Another mode of aggregation is designed to aid basic block analysis (BBA).
CodeAnalyst examines each function to identify basic blocks and aggregates samples accordingly. Each basic block is denoted by range of address as following:
[ StartAddr, StopAddr ) : ( Number of load / Number of store)The name also shows number of load and store instructions within the basic block.
This tab allows the specification of directory paths to help CodeAnalyst find the information that it needs for analysis. An additional search path for finding source can be specified in the Source File Search Paths field.
The controls on this tab are described in the following table.
Control
Description
No vmlinux
Check No vmlinux to profile without the kernel image. The option equals "--no-vmlinux" option in Oprofile.
vmlinux
Use the vmlinux field to specify the vmlinux file. If vmlinux is compressed, uncompress it first.
Oprofile Plugin
Select the version of Oprofile plugin to be used by CodeAnalyst.
Buffer Size
The Kernel buffer size field is used to specify the kernel buffer size for sample input.
CPU Buffer Size
Specify the buffer size for each CPU to hold samples.