I'm embedding python in my program, and now I want to fully test my program to check for memory leaks. So is there any way to know how much memory is used by python? Also is there any way to know how many certain kind of objects are allocated? say, how many intergers ?