diff options
| author | Rob Hudson | 2013-06-20 21:28:39 -0700 |
|---|---|---|
| committer | Rob Hudson | 2013-06-20 21:28:39 -0700 |
| commit | 7e4ecfd04cfe61b51e1fd6fdf0ce1c800a3ebb3b (patch) | |
| tree | 4e8c03555d4c68e93920c183d211a64f5791a67d /debug_toolbar/templates | |
| parent | 25ea0b4b33ae77ccaf12de5fdb467c9270d948ef (diff) | |
| parent | a686e7b558a1c616f6d9e33745433cca27aa5365 (diff) | |
| download | django-debug-toolbar-7e4ecfd04cfe61b51e1fd6fdf0ce1c800a3ebb3b.tar.bz2 | |
Merge pull request #319 from mindsocket/master
Add javascript timing metrics to timing panel onLoad if available
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/timer.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index f267de1..74cf0c7 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -1,4 +1,5 @@ {% load i18n %} +<h4>{% trans 'Resource Usage' %}</h4> <table> <colgroup> <col style="width:20%"/> @@ -19,3 +20,24 @@ {% endfor %} </tbody> </table> + +<!-- This hidden div is populated and displayed by code in toolbar.js --> +<div id="djDebugBrowserTiming" style="display:none"> + <h4>{% trans 'Browser Timing' %}</h4> + <table> + <colgroup> + <col style="width:20%"/> + <col style="width:60%"/> + <col style="width:20%"/> + </colgroup> + <thead> + <tr> + <th>{% trans "Timing Attribute" %}</th> + <th class="timeline">{% trans 'Timeline' %}</th> + <th class="time">{% trans "Milliseconds since navigation start (+length)" %}</th> + </tr> + </thead> + <tbody id="djDebugBrowserTimingTableBody"> + </tbody> + </table> +</div> |
