Allow users to record customized counter during benchmarking, there will be one extra column showing in the output result for each counter
Declared in <folly/Benchmark.h>
#define BENCHMARK_COUNTERS(name, counters, ...)
BENCHMARK_COUNTERS(insertVectorBegin, counters, iters) { vector<int> v; for (unsigned int i = 0; i < iters; ++i) { v.insert(v.begin(), 42); } BENCHMARK_SUSPEND { counters["foo"]= 10; } }
| Name | Description |
|---|---|
| name | The benchmark's name, also used as its function identifier. |
| counters | The UserCounters parameter recorded during the benchmark. |