Get Started with Intel® VTune™ Profiler for Windows* 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.

    To profile a DPC++ app, make sure to use Intel® oneAPI Base Toolkit (Beta) or the Intel® System Bring-up Toolkit (Beta) and compile the code using the -gline-tables-only and -fdebug-info-for-profiling Intel oneAPI DPC++ Compiler options.

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

  • Set up the environment variables:

    <install-dir>\env\vars.bat

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

    • [Program Files]\IntelSWTools\VTune Profiler <version> when installed as a standalone version;

    • [Program Files]\inteloneapi\vtune\<version> for Intel oneAPI Base Toolkit (Beta) installation;

    • [Program Files]\IntelSWTools\system_studio_<version>\VTune Profiler for Intel System Studio.

Step 1: Start Intel® VTune™ Profiler

Start Intel VTune Profiler through one of these ways:

Note

You do not need to create a project when running Intel® VTune™ Profiler from the command line or within Microsoft* Visual Studio.

Source

Start VTune Profiler

Standalone (GUI)

Intel System Studio IDE

  1. Run the vtune-gui command or launch VTune Profiler from the Start menu.

    To start VTune Profiler in the Intel System Studio IDE, select Tools > VTune Profiler > Launch VTune Profiler. This sets all appropriate environment variables and opens the standalone 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.

Microsoft* Visual Studio* IDE

Open your solution in Visual Studio. The VTune Profiler toolbar is automatically enabled and your Visual Studio project is set as an analysis target.

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 executable file.

  2. Click Start to run the Hotspots analysis on your host 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. Switch to other windows for an in-depth analysis.

The Insights section provides guidance for a deeper analysis.

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