Macro gbench::instantiate [−][src]
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.