add StatsRecord so that we can measure nonon-time related things