Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

Does VTune use 'QueryPerformanceCounter' Win32 API function or 'RDTSC' instruction?

SergeyKostrov
Valued Contributor II
943 Views
Hi everybody, I simply would like to know how VTune gets times. Does VTune use 'QueryPerformanceCounter' Win32 API function or 'RDTSC' instruction? Thanks in advance. Best regards, Sergey
0 Kudos
5 Replies
SergeyKostrov
Valued Contributor II
943 Views
Actually, I don't details and I simply need Yes or No answer, like 'Yes, RDTSC used' or 'No, RDTSC Not used'...
0 Kudos
Peter_W_Intel
Employee
943 Views
The answer is "No", VTune(TM) Amplifier retrieves the performance data from hardware PMU resource, via device drivers.
0 Kudos
Bernard
Valued Contributor I
943 Views
>>>VTune(TM) Amplifier retrieves the performance data from hardware PMU resource, via device drivers. >>> IIRC VTune drivers access MSR in order to collect performance PMU data.
0 Kudos
SergeyKostrov
Valued Contributor II
943 Views
Thank you. >>...VTune(TM) Amplifier retrieves the performance data from hardware PMU resource... What is accuracy of measuring different time events? A nanosecond, or more, or less?
0 Kudos
Bernard
Valued Contributor I
943 Views
What is accuracy of measuring different time events? A nanosecond, or more, or less? Probably it could be meaured in bus(QPI)cycles and translated by the software to nanosecond accuracy.
0 Kudos
Reply