optick

Macro event

Source
macro_rules! event {
    () => { ... };
    ($name:expr) => { ... };
}
Expand description

Instrument current scope

Note: You could override the name of the function by passing a custom name

Example:

fn calc() {
    optick::event!();
	...
}