Python Vérifiez l'utilisation de la RAM
import psutil # Can be found at https://pypi.org/project/psutil/
psutil.virtual_memory()
Amused Angelfish
import psutil # Can be found at https://pypi.org/project/psutil/
psutil.virtual_memory()
#!/usr/bin/env python
import psutil
# gives a single float value
psutil.cpu_percent()
# gives an object with many fields
psutil.virtual_memory()
# you can convert that object to a dictionary
dict(psutil.virtual_memory()._asdict())
$ pip install line_profiler