[CentralOH] Profiling Django Apps?

Issac Kelly issac.kelly at gmail.com
Thu Aug 25 20:52:25 CEST 2011


On Thu, Aug 25, 2011 at 2:48 PM, Nick Albright <nick.albright at gmail.com>wrote:

> On Thu, Aug 25, 2011 at 1:48 PM, Issac Kelly <issac.kelly at gmail.com>wrote:
>
>> What else do you want out of DDT? I've found that between the cache panel,
>> and the SQL panel, I've been able to find most of my problems, my worst
>> problems have been a result of not properly
>
>
> So I noticed that my debug toolbar doesn't have a cache panel.  Is this
> something to install outside of debug_toolbar?
>

It's not part of the default panel set, so you have to copy the default set,
and add the cache panel

https://github.com/django-debug-toolbar/django-debug-toolbar


DEBUG_TOOLBAR_PANELS = (
    'debug_toolbar.panels.version.VersionDebugPanel',
    'debug_toolbar.panels.timer.TimerDebugPanel',
    'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
    'debug_toolbar.panels.headers.HeaderDebugPanel',
    'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
    'debug_toolbar.panels.template.TemplateDebugPanel',
    'debug_toolbar.panels.sql.SQLDebugPanel',
    'debug_toolbar.panels.signals.SignalDebugPanel',
    'debug_toolbar.panels.logger.LoggingPanel',


'debug_toolbar.panels.cache.CachePanel',

)




>
> Thanks!
>  -Nick
>
>
>> using select_related, or iterating over big querysets.
>>
>> If it's slow, but not showing up in DDT, it could be one of several
>> things:
>> * Really, Really big pages (>10k lines) the template engine seems to crap
>> out on some of this
>> * Bad/Really Big JS.
>>
>>
>> On Thu, Aug 25, 2011 at 1:42 PM, Nick Albright <nick.albright at gmail.com>wrote:
>>
>>> Hello Everybody!
>>>
>>> I was wondering if anyone had any experience with profiling django apps.
>>> Things seem to be taking longer than I'd like in my one app, and I'm trying
>>> to figure out where the bottleneck may be.  And was wondering if anyone has
>>> done this before?  (I'm using django-debug-toolbar, which doesn't give me
>>> enough info)
>>>
>>> Just curious!
>>>  -Nick
>>>
>>> _______________________________________________
>>> CentralOH mailing list
>>> CentralOH at python.org
>>> http://mail.python.org/mailman/listinfo/centraloh
>>>
>>>
>>
>> _______________________________________________
>> CentralOH mailing list
>> CentralOH at python.org
>> http://mail.python.org/mailman/listinfo/centraloh
>>
>>
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/mailman/private/centraloh/attachments/20110825/a9702e55/attachment-0001.html>


More information about the CentralOH mailing list