Macro profiling::register_thread
source · macro_rules! register_thread { () => { ... }; ($name:expr) => { ... }; }
Expand description
Registers a thread with the profiler API(s). This is usually setting a name for the thread. Two variants:
- register_thread!() - Tries to get the name of the thread, or an ID if no name is set
- register_thread!(name: &str) - Registers the thread using the given name