Add some statistic reporting in debug builds.