Python equivalent of PHP's memory_get_usage()?
<p>I've already <a href="http://stackoverflow.com/questions/110259/python-memory-profiler">found the following question</a>, but I was wondering if there was a quicker and dirtier way of grabbing an estimate of how much memory the python interpreter is currently using for my script that doesn't rely on external libraries.</p>

<p>I'm coming from PHP and used to use <a href="http://au.php.net/memory%5Fget%5Fusage" rel="nofollow">memory_get_usage()</a> and <a href="http://au.php.net/memory%5Fget%5Fpeak%5Fusage" rel="nofollow">memory_get_peak_usage()</a> a lot for this purpose and I was hoping to find an equivalent.</p>
