Provide official hooks for execution profiling
|Reported by:||Michael van Tellingen||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There are various django apps which monkeypatch Django internals to add profiling for statistics. These are of course well known apps like django-debug-toolbar, django-mozilla-statsd etc.
I think a much cleaner solution is to provide official hooks instead of monkey-patches on top of monkey-patches :-)
Currently thinking about:
- Database Cursor, for tracking execution time of sql
- Template rendering time
- Cache retrieval etc.
I'm willing to create a patch if there is any interest.