Django-live-profiler is a low-overhead data access and code profiler for Django-based applications. For more information, check out http://invitebox.github.com/django-live-profiler/
pip install django-live-profiler
'profiler'
app to INSTALLED_APPS
'profiler.middleware.ProfilerMiddleware'
to MIDDLEWARE_CLASSES
'profiler.middleware.StatProfMiddleware'
to MIDDLEWARE_CLASSES
to enable Python code statistical profiling (using statprof_). WARNING: this is an experimental feature, beware of possible incorrect output.url(r'^profiler/', include('profiler.urls'))
to your urlconf.. _statprof: https://github.com/bos/statprof.py
In order to start gathering data you need to start the aggregation server::
$ aggregated --host 127.0.0.1 --port 5556
Visit http://yoursite.com/profiler/ for results.