pub fn set_thread_profiler(new_profiler: Box<dyn Profiler>) -> Box<dyn Profiler>
Set the profiler for the current thread.
Returns the old profiler.