Measure and report memory usage.