refact profiler