Moving the layout render profiler call to after the controller and action rendering.