optick
macro_rules! event { () => { ... }; ($name:expr) => { ... }; }
Instrument current scope
Note: You could override the name of the function by passing a custom name
Example:
fn calc() { optick::event!(); ... }