Flush output before and after writing memory tracking information.