Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

Samples

deepavs
Beginner
380 Views
Hi,

I want the explanation of the term 'samples'. For a particular function, its sample value is 52 and Sample After Value is 3.2G(320000), what does this means. If after optimization, i got a value of 28, is this represent the time taken for the function execution?
0 Kudos
2 Replies
deepavs
Beginner
380 Views

Hi,

After furthur study, i have the meaning of samples. If sample after value is 32,000,00 and cpu freq is 3200MHZ, it collects 1000 samples/sec. So if a function collects 32 samples means it takes 32 * 32,000,00 clock ticks to execute. If the above explanation or concept is not correct, plz do reply for this :smileyindifferent:

0 Kudos
Intel_C_Intel
Employee
380 Views
Samples are the number of times the processor generated an interrupt. These interupts are generated every time the sample after value is reached.
For example, say you are collecting samples on clockticks. Your sample after value is set to 3,200,000 and you collected 1,000 samples. 3,200,000 x 1,000 = 3,200,000,000 actual clockticks.
Now because there is a range, the actual number of clockticks could have been anywhere from 3,200,000,000 to 3,203,199,999 (3,200,000 x 1,001 samples minus 1.)
I hope this helps! :)
0 Kudos
Reply