Questions related to the use of the Intel Performance Management Unit, which provides performance counters related to the performance of currently executing code.
The Intel performance management unit provides performance counters which track performance related metrics for the currently executing code.
They are useful while profiling code, and are supported by Intel's VTune, Linux's perf command and the Windows Performance Toolkit.
The counters and the details of how to program them vary by CPU architecture and the details are available in Chapter 18 and 19 of the Intel-64 and IA-32 Architectures Software Developer Manual, Volume 3.