https://github.com/frankwiles/django-app-metrics Use this guy
https://code.djangoproject.com/wiki/ProfilingDjango Timing Python calls: http://docs.python.org/library/hotshot.html
prof = hotshot.Profile(final_log_file)
try:
ret = prof.runcall(f, *args, **kwargs)
finally: