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:
prof.close()
return ret
https://code.google.com/p/django-profiling/source/browse/trunk/profiling/middleware.py Can get the CPU time and Memory usage
from guppy import hpy
h = hpy()
mem_profile = h.heap()
https://github.com/garethr/django-timelog/blob/master/src/timelog/middleware.py
d = {
'method': request.method,
'time': time.time() - request._start,
'code': response.status_code,
'url': smart_str(request.path_info),
'sql': len(connection.queries),
'sqltime': sqltime,
}