benchmark/docs
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
..
_config.yml Set theme jekyll-theme-minimal 2021-08-18 10:07:38 +01:00
AssemblyTests.md Add tests to verify assembler output -- Fix DoNotOptimize. (#530) 2018-03-23 16:10:47 -06:00
dependencies.md bump cmake dep and docs (#1468) 2022-09-14 15:11:37 +01:00
index.md refactor the documentation to minimise README.md (#1211) 2021-08-17 21:45:33 +01:00
perf_counters.md [bazel] Build libpfm as a dependency to allow collection of perf counters (#1408) 2022-10-31 11:03:59 +00:00
platform_specific_build_instructions.md refactor the documentation to minimise README.md (#1211) 2021-08-17 21:45:33 +01:00
python_bindings.md Add installation and build instructions for Python bindings (#1392) 2022-05-10 13:16:00 +01:00
random_interleaving.md Random interleaving of benchmark repetitions - the sequel (fixes #1051) (#1163) 2021-06-03 21:16:54 +03:00
reducing_variance.md Discuss sources of variance in the user guide (#1481) 2022-09-09 15:41:10 +01:00
releasing.md Revert "Add possibility to ask for libbenchmark version number (#1004) (#1403)" (#1417) 2022-06-20 17:52:03 +01:00
tools.md Add requirements.txt for python dependencies (#994) 2020-06-29 13:22:03 +01:00
user_guide.md Discuss sources of variance in the user guide (#1481) 2022-09-09 15:41:10 +01:00