Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5335 ディスカッション

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

SergeyKostrov
高評価コントリビューター II
1,888件の閲覧回数
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 件の賞賛
5 返答(返信)
SergeyKostrov
高評価コントリビューター II
1,888件の閲覧回数
Actually, I don't details and I simply need Yes or No answer, like 'Yes, RDTSC used' or 'No, RDTSC Not used'...
Peter_W_Intel
従業員
1,888件の閲覧回数
The answer is "No", VTune(TM) Amplifier retrieves the performance data from hardware PMU resource, via device drivers.
Bernard
高評価コントリビューター I
1,888件の閲覧回数
>>>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.
SergeyKostrov
高評価コントリビューター II
1,888件の閲覧回数
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?
Bernard
高評価コントリビューター I
1,888件の閲覧回数
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.
返信