martinus / nanobench

Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
https://nanobench.ankerl.com
MIT License
1.43k stars 82 forks source link

Check for failures in parseFile(), perf events tweaks #84

Closed cj-tommi-rantala closed 1 year ago

cj-tommi-rantala commented 1 year ago

Check for failures when opening/reading any of the CPU frequency related sysfs files, to avoid needless warning messages.

Plus couple tweaks to the perf events:

martinus commented 1 year ago

Awesome, thanks!