Django snippets: Profiling middleware using cProfile
Similar to Profiling Middleware, but uses cProfile instead of hotshot.
Append ?prof to the URL to see profiling output instead of page output.