added performance profiling timers to the code and corresponding stats output