Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

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

gostanian__richard
New Contributor I
1,271 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
1,271 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
1,272 Views

PAPI the library implements the PAPI interface!

You can find a list of other options here.

 

0 Kudos
Ahmad__Saleem
Beginner
1,271 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