Added profiler in debug mode