I am trying to measure a count of instructions retired using the command line as below. However I get a count of the number of samples collected (~35000), not the count of the instructions retired(should be in billions). Can anyone help me here? How do I get this using the command line?
vtl activity -c sampling -o "-ec en='INST_RETIRED.ANY' -calibration no" -app gcc_part.bat -moi gcc_base.atom.exe
vtl view a1::r1 -sort -sea totals > 1.txt
Module Process INST_RETIRED.ANY samples Process Path Process ID Original Module Path
gcc_base.atom.exe gcc_base.atom.exe 35626 \Device\HarddiskVolume2\Manish\ 0x32c \Device\HarddiskVolume2\Manish\
ntdll.dll gcc_base.atom.exe 859 \Device\HarddiskVolume2\Manish\\ 0x32c \SystemRoot\System32\
It seem that is difficult to get total event count from "vtl view", but Iwould like tomodify your vtl command -
"vtl activity -c sampling -o "-ec en=INST_RETIRED.ANY:sa=2000000-calibration no" -app gcc_part.bat -moi gcc_base.atom.exe"
Actually you used default SAV (Sample After Value) for sampling data collection, but I don't know - my CPU frequency is 2G Mhz, so SAV "2000000" is used for "1000 samples per second" as expectation. You can change it to any value you like
Thus, you can get total event count = samples*SAV.
I experiencedsuch problem before if I set SAV as a very small number - too many system interruptions to cause unexpected result eithersystem being hung.
So VTune Analyzerwill give out default SAV= 100,000for each event ( except CPU_CLK_UNHALTED.CORE& INST_RETIRED.ANY - which uses CPU_Frequency/1,000 as default SAV number)