Select the Board Support Package (BSP) of the software application in
the Project Explorer View, then right-click and select Board Support
Package Settings (or select Xilinx Tools > Board Support
Package Settings).
Click on the OS name, such as standalone, to configure its parameters.
Set the enable_sw_intrusive_profiling field to true
and select the timer for use by the profile libraries.
The BSP should be compiled with the -pg compiler option.
To perform this step, click on the drivers item and select the cpu driver.
Add the -pg flag to the extra_compiler_flags option.