google / benchmark

A microbenchmark support library
Apache License 2.0
8.59k stars 1.57k forks source link

Allow for collection of more PMUs than are physically available. #1737

Open DivineOb opened 5 months ago

DivineOb commented 5 months ago

Normally we can only collect as many PMUs as we have physical PMU counters because they are managed as a single pinned group and extra requested PMUs will not be collected. With this patch we instead collect each PMU as a separate group once this limit is hit using PMU multiplexing.

Also fix a number of typos.

LebedevRI commented 5 months ago

Could you please split the typos into a preparatory PR?

Would https://github.com/google/benchmark/pull/1380 address your usecase?