Accessing x86 Performance Counters

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 13 03:28:56 PDT 2015


On Wednesday, 13 May 2015 at 03:38:33 UTC, Maxime
Chevalier-Boisvert wrote:
> I was wondering if anyone has written D code to access the x86 
> performance counters, to get information such as the number of 
> cache misses and cycle count.

It would probably be easiest to write some bindings to PAPI-C or
similar. As far as I know, DIY hardware performance monitoring
isn't worth the effort.


More information about the Digitalmars-d-learn mailing list