macro_rules! tag {
($name:expr, $value:expr) => { ... };
}Expand description
Attach custom data to the current scope
Note: You could override the name of the function by passing a custom name
Example:
fn calc(number: u32, name: &str) {
optick::event!();
optick::tag!("number", number);
optick::tag!("name", name);
...
}