Link to the Logilab blog, which presents a profiling technique for Python.

Here is the link.