log memory usage