orf / django-debug-toolbar-template-timings

A django-debug-toolbar panel that displays template rendering times for your Django application
https://pypi.python.org/pypi/django-debug-toolbar-template-timings
MIT License
297 stars 28 forks source link

Add timing of generic tags (SimpleNode and InclusionNode) #19

Closed mvantellingen closed 10 years ago

mvantellingen commented 10 years ago

This is done by patching the generic_tag_compiler and keeping track of all the nodes passing this function. We can't simply patch them like the BlockNodes because the node class is generated separately for each tag.

Bit ugly hack but it works pretty well :-)

orf commented 10 years ago

Thanks loads for this! I will give it a test before releasing it on PyPi