The hotshot profiler is available in Python to give a complete rundown of the execution of your script. Hotshot would have to be installed for you to execute.
It can be used as follows:
import hotshot import myfunction prof = hotshot.Profile('my_hotshot _stats') prof.run('myfunction').close()
Then to view a summary of the profiler's results use the commands:
import hotshot.stats hotshot.stats.load('my_hotshot_stats').strip_dirs().sort_stats('time').print_stats()