Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
1605 Discussions

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

gostanian__richard
217 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
217 Views

PAPI the library implements the PAPI interface!

You can find a list of other options here.

 

View solution in original post

2 Replies
Travis_D_
New Contributor II
218 Views

PAPI the library implements the PAPI interface!

You can find a list of other options here.

 

Ahmad__Saleem
Beginner
217 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.

Reply