pub fn global_profiler<F, R>(f: F) -> Rwhere F: FnOnce(&mut Profiler) -> R,
Get a reference to the global profiler.