[#BENCHMARK_COUNTERS]
= BENCHMARK&lowbar;COUNTERS
:mrdocs:

Allow users to record customized counter during benchmarking, there will be one extra column showing in the output result for each counter

== Synopsis

Declared in `&lt;folly&sol;Benchmark&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define BENCHMARK&lowbar;COUNTERS(name, counters, ...)

----

== Description

BENCHMARK&lowbar;COUNTERS(insertVectorBegin, counters, iters) &lcub; vector&lt;int&gt; v&semi; for (unsigned int i &equals; 0&semi; i &lt; iters&semi; &plus;&plus;i) &lcub; v&period;insert(v&period;begin(), 42)&semi; &rcub; BENCHMARK&lowbar;SUSPEND &lcub; counters&lsqb;&quot;foo&quot;&rsqb;&equals; 10&semi; &rcub; &rcub;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The benchmark&apos;s name, also used as its function identifier&period;
| *counters*
| The UserCounters parameter recorded during the benchmark&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
