only display memory usage in debug builds