File size: 88 Bytes
eb46ea7
 
 
1
2
3
4
import psutil

print(f"Memory usage: {psutil.virtual_memory().used / 1024**3:.2f} GiB")