Debug Information for Windows* Application Binaries
Intel® VTune™
requires debug information for the binary files it analyzes to obtain accurate performance data and enable source analysis.
Profiler
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
, enable symbol generation manually.
Profiler
To generate debug information for your binary files:
- Right-click your C++ project and select thePropertiesitem in the context menu.The<dialog box opens.your_project> Property Pages
- From theConfigurationdrop-down list, choose theReleaseconfiguration.It may be already selected if your current configuration in the Visual Studio environment is Release.
- From the left pane, selectConfiguration Properties > C/C++ > General.
- In theDebug Information Formatfield, chooseProgram Database (/Zi).
- From the left pane, selectConfiguration Properties > Linker > Debugging.
- In theGenerate Debug Infofield, chooseGenerate Debug Information (/DEBUG).
- ClickOKto 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 SYCL Applications
To enable performance profiling and generate debug information for SYCL applications running on a GPU, make sure to compile your code with
-gline-tables-only
and
-fdebug-info-for-profiling
options.