User Guide

  • 2020
  • 06/18/2020
  • Public Content
Contents

Debug Information for Windows* Application Binaries

Intel® VTune™
Profiler
requires debug information for the binary files it analyzes to obtain accurate performance data and enable source analysis.

Generate Debug Information in the PDB Format

On Windows* operating systems, debug information is provided in PDB files. Make sure both your system and application libraries/executable have PDB files.
By default, the Microsoft Visual Studio* IDE does not generate PDB information in the
Release
mode. For better results with the
VTune
Profiler
, enable symbol generation manually.
To generate debug information for your binary files:
  1. Right-click your C++ project and select the
    Properties
    item in the context menu.
    The
    <
    your_project
    >Property Pages
    dialog box opens.
  2. From the
    Configuration
    drop-down list, choose the
    Release
    configuration.
    It may be already selected if your current configuration in the Visual Studio environment is Release.
  3. From the left pane, select
    Configuration Properties > C/C++> General
    .
  4. In the
    Debug Information Format
    field, choose
    Program Database (/Zi)
    .
  5. From the left pane, select
    Configuration Properties > Linker > Debugging
    .
  6. In the
    Generate Debug Info
    field, choose
    Yes (/DEBUG)
    .
  7. Click
    OK
    to close the dialog box.
If you configured Visual Studio to generate debug information for your files, you cannot "fix" previous results because the executable and the debug information do not match the executable you used to collect the old results.
To generate a native .PDB file for a native image of .NET* managed assembly:
Use the Native Image Generator tool (
Ngen.exe
) from the .NET Framework. Make sure the search directories, specified in the
Binary/Symbol Search
dialog box, include path to the generated
.pdb
file.

Generate Debug Information for DPC++ Applications

To enable performance profiling and generate debug information for DPC++ applications running on a GPU, make sure to compile your DPC++ code with
-gline-tables-only
and
-fdebug-info-for-profiling
options.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804