[][src]Macro profiling::register_thread

macro_rules! register_thread {
    () => { ... };
    ($name:expr) => { ... };
}

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