Community
cancel
Showing results for 
Search instead for 
Did you mean: 
70 Views

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

Jump to solution

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

Accepted Solutions
Travis_D_
New Contributor II
70 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
71 Views

PAPI the library implements the PAPI interface!

You can find a list of other options here.

 

View solution in original post

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