improvement Stats in StatsMonitor to detect memory leaks