Macro gbench::count[][src]

macro_rules! count {
    ($($name: expr => {$($argname: expr => $val:expr),*}),*) => { ... };
}

Creates a counting event

The following code will log value “i” to a field “val” in counter “CA”

count!("CA" => {"val" => i});

This code will write i to field “a” and i/2 to field “b” in counter “a” and i%3 in field “c” in counter “b”.

count!(
    "a" => {
        "a" => i,
        "b" => i / 2
    },
    "b" => {
        "c" => i % 3
    }
);

For additional information on counter events visit official chrome tracing documentation