Get Started

  • 2020
  • 08/24/2021
  • Public Content

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
    .
    You can also use the
    matrix
    sample application available in
    <
    Documents
    >\VTune\Samples\matrix
    . You can see corresponding sample results in
    <
    Documents
    >\VTune\Projects\sample (matrix)
    .
  • Set up the environment variables:
    <
    install-dir
    >\setvars.bat
    By default, the
    <
    install-dir
    >
    for oneAPI components is
    Program Files (x86)\Intel\oneAPI>
    .
You do not need to execute
setvars.bat
when using
Intel® VTune™
Profiler
within Microsoft* Visual Studio*.

Step 1: Start
Intel® VTune™
Profiler

Start
Intel VTune
Profiler
through one of these ways and set up a project. A project is a container for the application you want to analyze, the type of analysis, and data collection results.
Source
Start
VTune
Profiler
Standalone (GUI)
  1. Run the
    vtune-gui
    command or run
    Intel® VTune™
    Profiler
    from the
    Start
    menu.
  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.
You do not need to create a project when running
Intel® VTune™
Profiler
from the command line or within Microsoft* Visual Studio.

Step 2: Configure and Run Analysis

After creating a new project, the
Configure Analysis
window opens with these default values:
  1. In the
    Launch Application
    section, browse to the location of your application executable file.
  2. Click
    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.

Next Steps

Performance Snapshot is a good starting point to get an overall assessment of application performance with
VTune
Profiler
. Next, check if your algorithm requires tuning.
  1. Run Hotspots Analysis on your application.
  2. Follow a Hotspots tutorial. Learn techniques to get the most out of your Hotspots analysis.
  3. Once your algorithm is well-tuned, run Performance Snapshot again to calibrate results and identify potential performance improvements in other areas.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.