10. AMD uProf GUI Reference

10.1. User Interface

The AMD uProf GUI provides a visual interface to profile and analyze the performance data. It has various pages and each page has several sub-windows. You can navigate the pages through the top horizontal navigation bar. When a page is selected, its sub-windows will be listed in the leftmost vertical pane as follows.

AMD uProf GUI.

Figure 10.1 AMD uProf GUI#

The menu names in the horizontal bar such as HOME, PROFILE, SUMMARY, and ANALYZE are called pages.

Each page has its sub-windows listed in the leftmost vertical pane. For example, HOME page has various windows such as Welcome, Recent Session(s), Import Session, and so on.

Each window has various sections. These sections are used to specify various inputs required for a profile run, display the profile data for analysis, buttons and links to navigate to associated sections. In the Welcome window, Quick Links section has two links that allows you to start a profile session with minimal configuration steps.

10.2. Launching GUI

To launch the AMDuProf GUI program:

On Windows, launch the GUI from C:\Program Files\AMD\AMDuProf\bin\AMDuProf.exe or using the Desktop shortcut.

On Linux, launch the GUI from /opt/AMDuProf_X.Y-ZZZ/bin/AMDuProf binary.

The Welcome screen is displayed.

AMD uProf Welcome Screen.

Figure 10.2 AMD uProf Welcome Screen#

It has multiple sections.

10.3. Configure Callstack Samples Collection

The call stack samples can be collected for C, C++, and Java applications with all the CPU profile types. These samples will be used to provide Flame Graph and Call Graph window.

Note

Java call stack profiling is supported only on Linux platforms.

Complete the following steps to enable call stack sampling:

  1. Select the profile target and profile type.

  2. Click the Advanced Options button to turn on the Enable CSS option in the Call Stack Options pane.

Start Profiling - Advanced Options.

Figure 10.3 Start Profiling - Advanced Options#

Refer Advanced Options for more information on this screen.

Note

If the application is compiled with higher optimization levels and frame pointers are not displayed, you can turn on the Enable FPO option. On Linux, this will increase the size of the raw profile file size.

10.4. Translation Progress

This screen displays:

Note

This button is available only in Windows.

Translation Progress.

Figure 10.4 Translation Progress#

10.5. Importing Profile Database

To analyze a profile database generated using CLI, click HOME > Import Session to go to the Import Profile Session. The following screen is displayed:

Import Session – Importing Profile Database.

Figure 10.5 Import Session – Importing Profile Database#

This can be used to import the processed profile data collected using the CLI or the processed profile data saved in GUI’s profile session storage path. You must do the following:

Note

The search might take time as all the sub-directories will be searched recursively.

10.6. Analyzing Saved Profile Session

Once you have created a new profile session or opened (imported) profile database, the history is updated and the last 50 opened profile database records are stored (that is, where they are located). Such a list will also appear in HOME > Recent Session(s) as follows:

PROFILE - Recent Session(s).

Figure 10.6 PROFILE - Recent Session(s)#

History of profile sessions opened for analysis in the GUI. The following options are available:

10.7. Using Saved Profile Configuration

When a profile configuration is created (when you set the options and start profiling), if it generates at least one valid profile session, the profile configuration details will be stored with the options set and can be loaded again. Such a list is available in PROFILE > Saved Configurations as follows:

PROFILE - Saved Configurations.

Figure 10.7 PROFILE - Saved Configurations#

History of profile configurations used to collect profile data using GUI. The following options are available:

Note

By default, the profile configuration name is generated by the application. If you want to reuse it, you should name it appropriately to locate it easily. To do so, provide a config name in the bottom left corner (Config Name line-edit) in PROFILE > Start Profiling.

10.8. Settings

There are certain application-wide settings to customize the AMD uProf experience. The SETTINGS page is in top-right corner and is divided into the following three sections:

10.8.1. Preferences

Use this section to set the global path and data reporting preferences.

SETTINGS - Preferences.

Figure 10.8 SETTINGS - Preferences#

10.8.2. Symbols

Use this section to configure the Symbol Paths and Symbol Server locations. The Symbol server is a Windows only option.

SETTINGS - Symbols.

Figure 10.9 SETTINGS - Symbols#

10.8.3. Source Data

Use this section to set the Source view preferences.

SETTINGS - Source Data.

Figure 10.10 SETTINGS - Source Data#

You can use Select Disassembly Syntax to select the syntax in which you wish to see the disassembly. By default, it is set to Intel on Windows and AT&T on Linux.

10.8.4. Profile Data

Use this section to control the location of data generation during profiling.

Profile Data.

Figure 10.11 Profile Data#

In Profile Data, the Capture launch application output list is enabled and has these three options: Redirect to file(s), Shows in UI and Ignore Output.