This script uses the unmaintained hotshot module (gone on Python 3) and doesn't seem to be Django specific in any way.