print memory usage diagnostics