add memory usage info to print