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

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

Ritratto di Sergey Kostrov

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

6 post / 0 new
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione
Ritratto di Sergey Kostrov

Actually, I don't details and I simply need Yes or No answer, like 'Yes, RDTSC used' or 'No, RDTSC Not used'...

Ritratto di Peter Wang (Intel)

The answer is "No", VTune(TM) Amplifier retrieves the performance data from hardware PMU resource, via device drivers.

Ritratto di iliyapolak

>>>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.

Ritratto di Sergey Kostrov

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?

Ritratto di iliyapolak

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.

Accedere per lasciare un commento.