Track memory usage in megabytes.