Register total memory allocated.