In a python, how do I get the current interpreter's/process's RAM usage?
To be clear: I'm not looking to get available RAM on the system, or RAM usage of any other process - only RAM usage of the process/interpreter currently doing the python interpretation.
I understand that the number will represent the memory it has allocated and not necessarily the memory (measured in pages) reserved for the process by the OS, resulting in an under-estimation, or that the system may have paged out or compressed some of the memory, but I'm OK with that.