title: Is there a simple way to get python private heap size?
body: <p>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.</p>
  
  <p>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.</p>