This question already has an answer here:
I just did a search for "find out how much memory a python program takes" on Google and came up with two hits that contain the same content:
- Python script knows how much memory it's using
comanswer.com site was higher ranked. I guess they do a better job at search engine optimization (SEO).