{#- A panel with no template of its own, such as one code in the worker adds with muru.panels (issue 677): its values, its tables, with a column of numbers kept on one line and aligned right, and its spans, each span drawn as a bar on the request's clock, and what it could not keep. A text panel's text is drawn before it by the renderer (issue 680). -#} {%- if panel["values"] %}
| {{ value.name }} | {{ value.value }} |
|---|
| {{ column }} | {% endfor %}
|---|
| {{ cell }} | {% endfor %}
Nothing was added to this table for this request.
{%- endif %} {%- endfor %} {%- if panel.spans %} {%- set ns = namespace(total=0) -%} {%- for span in panel.spans %}{% if span.start_ms + span.duration_ms > ns.total %}{% set ns.total = span.start_ms + span.duration_ms %}{% endif %}{% endfor -%} {%- set total = ns.total -%} {%- 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 %}| Name | Starts | Takes | On the request's clock |
|---|---|---|---|
| {{ span.name }} | {{ span.start_ms|round(2) }} ms | {{ span.duration_ms|round(2) }} ms | {{ bar(span) }} |
Nothing was added to this panel for this request.
{%- endif %} {%- if panel.dropped %}{{ panel.dropped }} {{ "entry was" if panel.dropped == 1 else "entries were" }} past the panel's limits and not kept.
{%- endif %}