benchmark/tools
Raghu Raja 398a8ac2e8
[bazel] Build libpfm as a dependency to allow collection of perf counters (#1408)
* Build libpfm as a dependency to allow collection of perf counters

This commit builds libpfm using rules_foreign_cc and lets the default
build of the benchmark library support perf counter collection without
needing additional work from users.

Tested with a custom target:

```
bazel run \
        --override_repository=com_github_google_benchmark=/home/raghu/benchmark \
        -c opt :test-bench -- "--benchmark_perf_counters=INSTRUCTIONS,CYCLES"
Using profile: local

<snip>

----------------------------------------------------------------------
Benchmark            Time             CPU   Iterations UserCounters...
----------------------------------------------------------------------
BM_Test      0.279 ns        0.279 ns   1000000000 CYCLES=1.00888 INSTRUCTIONS=2

```

Signed-off-by: Raghu Raja <raghu@enfabrica.net>

* Adding myself to the CONTRIBUTORS file per CLA guidance

Enfabrica has already signed a corporate CLA.

Signed-off-by: Raghu Raja <raghu@enfabrica.net>

Signed-off-by: Raghu Raja <raghu@enfabrica.net>
2022-10-31 11:03:59 +00:00
..
gbench Stop using pandas.Timedelta (fixes #1482) (#1483) 2022-09-08 20:26:58 +03:00
BUILD.bazel bazel support for tools (#982) 2020-11-06 09:10:04 +00:00
compare.py Do not depend on unversioned python binary (#1496) 2022-10-10 14:46:41 +03:00
libpfm.BUILD.bazel [bazel] Build libpfm as a dependency to allow collection of perf counters (#1408) 2022-10-31 11:03:59 +00:00
requirements.txt Add requirements.txt for python dependencies (#994) 2020-06-29 13:22:03 +01:00
strip_asm.py Do not depend on unversioned python binary (#1496) 2022-10-10 14:46:41 +03:00