Before you Begin Controlling Data Collection

Before using the VTune(TM) Performance Analyzer API, make sure to prepare your system as follows:

To compile your C/C++ program which uses API, do the following:

Command-line examples:

icc –I opt/intel/vtune/analyzer/include –L opt/intel/vtune/analyzer/bin –lVtuneApi my_program.c

icc –I opt/intel/vtune/analyzer/rdc/include –L opt/intel/vtune/rdc/analyzer/bin –lVtuneApi my_program.c

To run your C/C++ program which uses Pause/Resume or Threads Naming API, do the following:

Adjust the environment with the following command:  

To run your C/C++ program which uses the VTune analyzer Start/Stop API, do the following:

Adjust the environment with the following command:

API-related topics