logging memory usage.