I've got a python program which uses C libraries (through swig), on a Linux machine. I'd like to know how much memory is allocated by these libraries, and how much is allocated by the python interpreter.
If I'm correct, total memory of the process should be (more or less) the sum of interpreter's private heap size, plus memory allocated by the libraries.