Changes between Version 3 and Version 4 of ProfilingDjango
- Timestamp:
- Feb 10, 2007, 6:19:15 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProfilingDjango
v3 v4 1 {{{django.core.handlers.profiler-hotshot}}} provides profiling support for Django when using mod_python. H ere's a similar solution for the internal development webserver. Hotshot generates logs that can be also used by aplication like kcachegrind. Read [http://www.rkblog.rk.edu.pl/w/p/django-profiling-hotshot-and-kcachegrind/ Django profiling with hotshot and kcachegrind] for more details.1 {{{django.core.handlers.profiler-hotshot}}} provides profiling support for Django when using mod_python. Hotshot generates logs that can be also used by aplication like kcachegrind. Read [http://www.rkblog.rk.edu.pl/w/p/django-profiling-hotshot-and-kcachegrind/ Django profiling with hotshot and kcachegrind] for more details. 2 2 3 3 4 Apply the included patch to {{{django/core/management.py}}} and start Django with {{{manage.py runserver}}}. Each request will create a {{{.prof}}} file in your {{{/tmp}}} directory. You can then open a Python shell and print the statistics:4 Here's a similar solution for the internal development webserver. Apply the included patch to {{{django/core/management.py}}} and start Django with {{{manage.py runserver}}}. Each request will create a {{{.prof}}} file in your {{{/tmp}}} directory. You can then open a Python shell and print the statistics: 5 5 6 6 {{{