I write most of my codes as Fortran extension to Python, using fantastic f2py tool. However, it is sometimes difficult to catch the memory leaks, and profile the program (where the most time it is spent).
The question is: Is there some simple way to debug and/or profile extensions (especially, f2py-generated) for Python? Using valgrind seems to be complicated (I use MacOsX, and do not want to recompile the interpreter). The only options that I have now is print - debugging + print - profile, which is time-consuming.