profiling.html 1.2 KB

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