Changes between Version 2 and Version 3 of ProfilingDjango
- Timestamp:
- Feb 10, 2007, 6:17:41 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProfilingDjango
v2 v3 1 {{{django.core.handlers.profiler-hotshot}}} provides profiling support for Django when using mod_python. Here's a similar solution for the internal development webserver. 1 {{{django.core.handlers.profiler-hotshot}}} provides profiling support for Django when using mod_python. Here'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. 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: