update the code statistic.