[Django] #20481: Provide official hooks for execution profiling

13 views
Skip to first unread message

Django

unread,
May 22, 2013, 2:59:38 PM5/22/13
to django-...@googlegroups.com
#20481: Provide official hooks for execution profiling
-------------------------------+--------------------
Reporter: mvt | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/20481>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 22, 2013, 8:49:14 PM5/22/13
to django-...@googlegroups.com
#20481: Provide official hooks for execution profiling
------------------------------+------------------------------------

Reporter: mvt | Owner: nobody
Type: New feature | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by russellm):

* 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>

Django

unread,
May 23, 2013, 11:10:15 AM5/23/13
to django-...@googlegroups.com
#20481: Provide official hooks for execution profiling
------------------------------+------------------------------------

Reporter: mvt | Owner: nobody
Type: New feature | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by robhudson):

* cc: rob@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/20481#comment:2>

Reply all
Reply to author
Forward
0 new messages