Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help
Before instrumenting your application, you need to configure your build system to be able to reach the API headers and libraries.
<install_dir> is the Intel® VTune™Amplifier installation directory.
The default installation path for the VTune Amplifier XE is /opt/intel/vtune_amplifier_xe_version. For the VTune Amplifier for Systems, the default <install_dir> is:
For C/C++ Applications
Add the following #include statements to every source file that you want to instrument:
#include <ittnotify.h>
The ittnotify.h header contains definitions of ITT API routines and important macros which provide the correct logic of API invocation from a user application.
The ITT API is designed to incur almost zero overhead when tracing is disabled. But if you need fully zero overhead, you can compile out all ITT API calls from your application by defining the INTEL_NO_ITTNOTIFY_API macro in your project at compile time, either on the compiler command line, or in your source file, prior to including the ittnotify.h file.
For Fortran Applications
Add the ITTNOTIFY module to your source files with the following source line:
USE ITTNOTIFY
Insert __itt_* (C/C++) or ITT_* (Fortran) notifications in your source code.
C/C++ example:
__itt_pause();
Fortran example:
CALL ITT_PAUSE()
For more information, see Instrumenting Your Application.
You need to link the static library, libittnotify.a, to your application. If tracing is enabled, this static library loads the ITT API implementation and forwards ITT API instrumentation data to VTune Amplifier .
If tracing is disabled, the static library ignores ITT API calls, providing nearly zero instrumentation overhead.