Changes between Version 16 and Version 17 of ProfilingDjango
- Timestamp:
- Apr 18, 2014, 8:49:29 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProfilingDjango
v16 v17 107 107 === Middleware === 108 108 109 [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. Unfortunately, these are both items on Django Snippets, so you should treat them as being untested abandonware, or, more charitably, example code.109 [http://djangosnippets.org/snippets/186/ Profiling Middleware] and [http://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. Unfortunately, these are both items on Django Snippets, so you should treat them as being untested abandonware, or, more charitably, example code. 110 110 111 111 There is another unofficial [http://www.no-ack.org/2010/12/yet-another-profiling-middleware-for.html profiling middleware], that attaches the profiler stats enclosed by a comment at the bottom of each HTML, XML and JSON document. That is useful in particular when profiling AJAX requests or when you want to watch the actual content and the profiler stats at the same time. … … 160 160 == Other Approaches == 161 161 162 [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].162 [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://djangosnippets.org/snippets/461/ django snippet 461]. 163 163