Using the Python profiler
Posted by Lars Wirzenius