john
john

Reputation: 31

How to analyse the result of django debug toolbar?

From the debug result, I can see my website browser timing is really long. Basically I create 13000 items for the blog table. Seems like it takes not a long time to do sql query.
The debug result

My questions is how can I identify bottlenecks from debug result. Why it loads so slowly, takes near 20s. How can I reduce the domContentLoadedEvent and domloading Time.
Thanks.

Upvotes: 3

Views: 3472

Answers (1)

whp
whp

Reputation: 1514

Here's a direct answer to your question using Debug Toolbar: enable the profiling panel.

Note: this will remove the other panels if you don't have the default panels in the dictionary, as in the example.

Docs

settings.py

DEBUG_TOOLBAR_PANELS = {
    'debug_toolbar.panels.profiling.ProfilingPanel',
}

Upvotes: 1

Related Questions