{#- The Timing panel: the request's phases as spans on its clock, each drawn as a bar placed where it starts and as wide as it lasts. -#} {%- set total = panel.spans[0].duration_ms if panel.spans else 0 -%} {%- macro bar(span) -%} {%- set from = [[(span.start_ms * 100 / total)|round|int, 0]|max, 100]|min if total > 0 else 0 -%} {%- set width = [[(span.duration_ms * 100 / total)|round|int, 0]|max, 100 - from]|min if total > 0 else 0 -%} {%- endmacro -%}
| Phase | Starts | Takes | On the request's clock |
|---|---|---|---|
| {{ span.name }} | {{ span.start_ms|round(2) }} ms | {{ span.duration_ms|round(2) }} ms | {{ bar(span) }} |
| {{ row.cells[0] }} | {{ row.cells[1] }} |
|---|
No times are known yet.
{%- else %}start_response, or sent http.response.start.close() returned, or the ASGI application returned.The {{ value.name }} {% if value.value == "still to come" %}is still to come.{% else %}{{ value.value }}.{% endif %}
{%- endfor %}