In this screencast you will learn the basics of profiling your code using Python's built-in cProfile module.
You can read the chapter this screencast is based on here - http://python101.pythonlibrary.org/ or get a copy of the book on Leanpub: https://leanpub.com/python_101