A much as some gnomers don't like python ;), there's some good stuff coming from those that do. Andy Wingo writes of his work to reduce the memory footprint of the Flumotion Media Server. It is linux specific (and somewhat gnome/gtk specific), but if you're looking to profile memory usage (and your code somewhat runs on linux), this will be useful.