rdpmc library

rdpmc library

marcj的头像

i'm trying to count the number of instructions retired between two points in a windows7 device driver.

is there sample code or a library function to achieve this, or do i have to __asm rdpmc ?

3 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
TimP (Intel)的头像

You could insert VTune API calls to turn on and off counting at the points of interest.

MrAnderson (Intel)的头像

However, be reminded that the VTune analyzer does statistical profiling and will not give you an EXACT count of instructions retired between two points.

Regards, MrAnderson

登陆并发表评论。