Tracking historical memory usage