{#- 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"] %} {%- for value in panel["values"] %} {%- endfor %}
{{ value.name }}{{ value.value }}
{%- endif %} {%- for table in panel.tables %} {%- set numbers = numeric[loop.index0] %} {% for column in table.columns %}{{ column }}{% endfor %} {%- for row in table.rows %} {% for cell in row.cells %}{% endfor %} {%- endfor %}
{{ table.caption }}
{{ cell }}
{%- if not table.rows %}

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 %} {%- for span in panel.spans recursive %} {%- if span.children %}{{ loop(span.children) }}{% endif %} {%- endfor %}
NameStartsTakesOn the request's clock
{{ span.name }} {{ span.start_ms|round(2) }} ms {{ span.duration_ms|round(2) }} ms {{ bar(span) }}
{%- endif %} {%- if not panel["values"] and not panel.tables and not panel.spans and not panel.text %}

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 %}