Good afternoon..I've been using the Intel PCM to analyze my software in a way that I could measure the number of CPU cycles consumed while executing and the number of CPU cycles spent while waiting for some event (such as IO operation or waiting for a reading/writing in the memory). .Does the value "Reference Cycles", acquired through the call getRefCycles(), count exclusively the number of CPU cycles wasted by the CPU while waiting for the memory? And does getCycles() return the Executed and Waited cycles?.In addition, I'm interested in count the number of CPU cycles spent due to misses at the Cache Levels. For that, Intel provides the getCyclesLostDueL2CacheMisses() call. However, it returns a double value (i. e. Number of Cycles Lost Due to L2CacheMisses: 0.0652477). Does this represent a percentage of the Total CPU Cycles? .Thanks in advance..Anderson Venturini
For more complete information about compiler optimizations, see our Optimization Notice.