Macro gbench::instantiate[][src]

macro_rules! instantiate {
    ($name: ident | $folder:expr) => { ... };
    ($folder:expr) => { ... };
}

A macro for instantiating the global environment for benchmark logging.

This macro should be used at the top of any program using this crate.

instantiate!("target/bench");
// expands into this
let __gbench_instantiator__ = Instantiator::new("target/bench");
instantiate!(ginst | "target/bench");
// expands into this
let ginst = Instnatiator::new("target/bench");

The second option is used when you need to use end on the instance.