Library for using the linux 'perf stat' command within an isolated portion of a program
Start a measure with the perf stat command. 'what' is an extra parameter for the perf command, or NULL if none special. It returns 0 in case of success.
Stop the measure and returns a measure report. Or NULL in case of failure.
Get the value associated to the name 'name' in the report and return it. Return NAN if the name is not present in the report.
Print all the report on the given stream.
Free the report.
See test.c
- Not precise enought for small measure.
- Not for production.