Macro gdnative_core::_profile_sig
source · macro_rules! _profile_sig {
($tag:expr) => { ... };
}
Expand description
Convenience macro to create a profiling signature with a given tag.
The expanded code will panic at runtime if the file name or tag
contains ::
or
any NUL-bytes.
See Signature
for more information.
Examples
use gdnative::profiler::{profile, profile_sig};
let answer = profile(profile_sig!("foo"), || 42);
assert_eq!(answer, 42);