Intel® VTune™ Profiler

Get Started

ID 769038
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Get Started with Intel® VTune™ Profiler for Linux* OS

Before You Begin

  1. Install Intel® VTune™ Profiler on your Linux* system.

    By default, the <install-dir> is:

    • $HOME/intel/oneapi/ when installed with user permissions;

    • /opt/intel/oneapi/ when installed with root permissions.

  2. Build your application with symbol information. Enable all optimizations. Use -g and -O2 options. For detailed information on compiler settings, see the VTune Profiler online user guide.

    You can also use the matrix sample application available in <install-dir>/sample/matrix. Find sample results in the matrix_results folder in the same location.

  3. Set up the environment variables:

    source <install-dir>/setvars.sh

Step 1: Start VTune Profiler

Start VTune Profiler through one of these ways:

Source

Start VTune Profiler

Standalone/IDE (GUI)

  1. Run the vtune-gui command.

    To start VTune Profiler from the Intel® System Studio IDE, select Tools > VTune Profiler > Launch VTune Profiler. This sets all appropriate environment variables and launches a standalone interface of the product.

  2. When the GUI opens, click in the Welcome screen.

  3. In the Create Project dialog box, specify the project name and location.

  4. Click Create Project.

Standalone (Command line)

Run the vtune command.

Step 2: Configure and Run Analysis

After creating a new project, the Configure Analysis window opens with these default values:

The Performance Snapshot analysis type is a good starting point for your profiling experience with Intel® VTune™ Profiler. This analysis gives you a general overview of your application performance with recommendations for areas to focus.

  1. In the Launch Application section, browse to the location of your application.

  2. Click the Start to run Performance Snapshot on your application. This analysis presents a general overview of issues affecting the performance of your application on the target system.

Step 3: View and Analyze Performance Data

When data collection completes, VTune Profiler displays analysis results in the Summary window. Here, you see a performance overview of your application.

The overview typically includes several metrics along with their descriptions.

Expand each metric for detailed information about contributing factors.

A flagged metric indicates a value outside acceptable/normal operating range. Use tool tips to understand how to improve a flagged metric.

See guidance on other analyses you should consider running next. The Analysis Tree highlights these recommendations.