Opened 11 months ago

Last modified 11 months ago

#20481 new New feature

Provide official hooks for execution profiling

Reported by: mvt Owned by: nobody
Component: Core (Other) Version: master
Severity: Normal Keywords:
Cc: rob@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: 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.

Attachments (0)

Change History (2)

comment:1 Changed 11 months ago by russellm

  • Component changed from Uncategorized to Core (Other)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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.

comment:2 Changed 11 months ago by robhudson

  • Cc rob@… added

Add Comment

Modify Ticket

Change Properties
<Author field>
as new
The owner will be changed from nobody to anonymous. Next status will be 'assigned'
as The resolution will be set. Next status will be 'closed'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.