| 1 | = Profiling Django = |
| 2 | |
| 3 | [http://code.google.com/p/django-command-extensions/ django-command-extensions] provides a `runprofileserver` command for running the development server with hotshot/profiling tools enabled. It has the ability to export [http://kcachegrind.sourceforge.net/ KCacheGrind] compatible profile files. |
| 4 | |
| 5 | [http://www.mysoftparade.com/blog/django-profile-sql-performance/ django-profile.py] is a script that can be used to profile any Django-powered web-site and find how many SQL-queries are used per page, how heavy html-pages are, etc. See also [http://www.djangosnippets.org/snippets/461/ django snippet 461]. |
| 6 | |
| 7 | [http://www.djangosnippets.org/snippets/186/ Profiling Middleware] and [http://www.djangosnippets.org/snippets/605/ Extended Profiling Middleware] print profile results for method, additionally groups results by files and by modules. Add the "&prof=" query parameter and you'll see the profiling results in your browser. |
| 8 | |
| 9 | [http://code.google.com/p/django-profiling/ django-profiling] seems to be another variant of the profiling middleware. |
| 10 | |
| 11 | ---- |
| 12 | |