Thread-safe manual profiler