check how much ram my program is consuming by function python code example Example: evaluate how much a python program memory ps -m -o %cpu,%mem,command