update performance analysis code