Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

profiling.html 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% load i18n %}{% load static %}
  2. <table width="100%">
  3. <thead>
  4. <tr>
  5. <th>{% trans "Call" %}</th>
  6. <th>{% trans "CumTime" %}</th>
  7. <th>{% trans "Per" %}</th>
  8. <th>{% trans "TotTime" %}</th>
  9. <th>{% trans "Per" %}</th>
  10. <th>{% trans "Count" %}</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {% for call in func_list %}
  15. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %} djDebugProfileRow{% for parent_id in call.parent_ids %} djToggleDetails_{{ parent_id }}{% endfor %}" depth="{{ call.depth }}">
  16. <td>
  17. <div data-padding-left="{{ call.indent }}px">
  18. {% if call.has_subfuncs %}
  19. <a class="djProfileToggleDetails djToggleSwitch" data-toggle-id="{{ call.id }}" data-toggle-open="+" data-toggle-close="-" href>-</a>
  20. {% else %}
  21. <span class="djNoToggleSwitch"></span>
  22. {% endif %}
  23. <span class="djdt-stack">{{ call.func_std_string }}</span>
  24. </div>
  25. </td>
  26. <td>{{ call.cumtime|floatformat:3 }}</td>
  27. <td>{{ call.cumtime_per_call|floatformat:3 }}</td>
  28. <td>{{ call.tottime|floatformat:3 }}</td>
  29. <td>{{ call.tottime_per_call|floatformat:3 }}</td>
  30. <td>{{ call.count }}</td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>
  35. <script src="{% static 'debug_toolbar/js/toolbar.profiling.js' %}"></script>