As the title of the question indicates that I want to know if there is a way to get the heap size of the current process.
You can do it, but I think it will be slow and painful.