Displays hotshot profiling for any view.
Add the "prof" key to query string by appending ?prof (or &prof=)
and you'll see the profiling results in your browser.
It's set up to only be available in django's debug mode,
but you really shouldn't add this middleware to any production configuration.
I get the following error: Not sure what is causing this. Given hotshot is no more maintained, I see no reference to similar issues found by others. I tried using cProfile but the syntax for cProfile somehow doesn't allow me to work with callbacks passed to the process_view.
profile_middleware.py", line 61, in process_view
stats = hotshot.stats.load(filename)
File "/usr/lib/python2.6/hotshot/stats.py", line 15, in load
File "/usr/lib/python2.6/hotshot/stats.py", line 54, in load
assert not self._stack