Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

Where can I get a library for code to access hardware performance counters from inside a C++ program?

gostanian__richard
New Contributor I
659 Views

I know how to access performance counters from tools like perf and pcm, but I would like to associate hardware counters with particular lines of code in my application. Is there a library that implements the PAPI interface or some other way to get at the hardware counters from inside a C++ program?  Where can I download it from?

0 Kudos
1 Solution
Travis_D_
New Contributor II
659 Views

PAPI the library implements the PAPI interface!

You can find a list of other options here.

 

View solution in original post

0 Kudos
2 Replies
Travis_D_
New Contributor II
660 Views

PAPI the library implements the PAPI interface!

You can find a list of other options here.

 

0 Kudos
Ahmad__Saleem
Beginner
659 Views

There is very nice C++ tool to easily program performance counters from Morgan Stanley Xpedite

This allows programmer to easily instrument a section of code for performance counters.

0 Kudos
Reply