Is there a way for a Python program to determine how much memory it\'s currently using? I\'ve seen discussions about memory usage for a single object, but what I need is tot
For Python 3.6 and psutil 5.4.5 it is easier to use memory_percent() function listed here.
memory_percent()
import os import psutil process = psutil.Process(os.getpid()) print(process.memory_percent())