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.
--
Ticket URL: <https://code.djangoproject.com/ticket/20481>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* needs_better_patch: => 0
* component: Uncategorized => Core (Other)
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
I'm going to mark this accepted based on the principle that extension APIs
for real-world use cases are always welcome, and profiling definitely
qualifies as a real-world use case.
However, this needs specifics.
--
Ticket URL: <https://code.djangoproject.com/ticket/20481#comment:1>
* cc: rob@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/20481#comment:2>