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

Before You Begin

  • Build your application with symbol information and in Release mode with all optimizations enabled. For detailed information on compiler settings, see the VTune Profiler online user guide.

    If you do not have your own application, use the matrix sample application available in <install_directory>\sample\matrix. You can see sample results in <install-dir>\sample (matrix).

  • Set up the environment variables:

    source <install-dir>/env/vars.sh

    By default, the <install-dir> is the following:

    • /opt/intel/vtune_profiler_<version> when installed with root permissions;

    • $HOME/intel/vtune_profiler_<version> when installed with user permissions;

    • /opt/intel/inteloneapi/vtune/<version> for Intel oneAPI Base Toolkit installation.

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. Click the menu button in the upper left corner and select New > Project... .

  3. Specify the project name and location in the Create Project dialog box.

  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:

Setting

Default Value

Target System

Local Host

Analysis Target

Launch Application

Analysis Type

Hotspots

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

  2. Click the Start button to launch the application and begin collecting Hotspots data.

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. Switch to other windows for an in-depth analysis.

The Insights section provides guidance for further analysis.

Next Steps

Try a different analysis type, for example, recommended in the Insights section, for deeper analysis of your system or application. Click the Browse button in the HOW pane to view other analysis types.

For the matrix (sample) project, you can explore pre-collected analysis results using any of the following options:

  • Click the Help Tour button on the Welcome page to launch a sample-based VTune Profiler GUI overview.

  • Use the matrix sample and the associated VTune Profiler Hotspots tutorial that provides detailed descriptions on the collected results and possible optimizations.

  • Open the matrix (sample) project and associated result file to explore common performance issues on your own. If the project is not already available in the Project Navigator, open the project from the ~/intel/vtune/vtune/projects/sample (matrix) directory.

For more complete information about compiler optimizations, see our Optimization Notice.