{% extends "layout.html" %} {% import "_macros.html" as m %} {% block title %}{{ record.method }} {{ record.path }}{% endblock %} {% block header %}

{{ m.status(record) }} {{ record.method }} {{ record.url }}

{{ m.ms(record.ms) }} total {{ record.app_queries|length }} SQL in {{ m.ms(record.sql_ms) }} {% if record.target %}→ {{ record.target }}{% endif %} {% if record.turbo_frame %}Turbo Frame {{ record.turbo_frame }}{% endif %} {% if record.prefetch %}prefetch{% endif %} {{ record.started_at.strftime("%H:%M:%S") }} {{ record.id }}
{% if previous %}

Redirected from {{ m.status(previous) }} {{ previous.method }} {{ previous.url }}

{% endif %} {% if record.redirect_to %}

Redirects to {{ record.redirect_to }}

{% endif %} {% if record.error %}

Error {{ record.error }}

{% endif %} {% endblock %} {% block body %}

Time

{% for name, step_ms in record.steps %} {% endfor %}
Pipeline stepTime
{{ name }} {{ m.ms(step_ms) }}  
Outside the steps (connections, hooks, error handling) {{ m.ms([record.ms - steps_ms, 0]|max) }}
Total{{ m.ms(record.ms) }}

Inside that time

SQL · {{ record.app_queries|length }} queries{{ m.ms(record.sql_ms) }}
Views · {{ record.renders|length }} rendered, with the queries they run{{ m.ms(record.render_ms) }}
Cache · {{ record.cache_calls|length }} calls{{ m.ms(record.cache_calls_ms) }}

SQL · {{ record.app_queries|length }} queries, {{ m.ms(record.sql_ms) }} {%- if record.cache_queries %} · {{ record.cache_queries|length }} of the cache, {{ m.ms(record.cache_ms) }}{% endif %} {%- if record.repeated_count %}, {{ record.repeated_count }} repeated{% endif %}

{% if record.queries %} {% for query in record.queries %} {% endfor %}
#TimeQuery
{{ loop.index }} {{ m.ms(query.ms) }}
{{ query.sql }}
{% if query.params %}
{{ query.params }}
{% endif %} {% if query.error %}
Error {{ query.error }}
{% endif %}
{%- if query.repeated > 1 %}×{{ query.repeated }} {% endif -%} {%- if query.cache %}cache {% elif query.db != "main" %}[{{ query.db }}] {% endif -%} {{ query.origin }} {%- if query.component %} · rendering {{ query.component }}{% endif %}
{% else %}

No queries

{% endif %}

Views · {{ record.renders|length }} rendered, {{ m.ms(record.render_ms) }}

{% for render in record.renders %}

{{ render.view }} · {{ m.ms(render.ms) }}

{% if render.variables %} {% for name, value in render.variables.items() %} {% endfor %}
{{ name }}
{{ value }}
{% else %}

No variables

{% endif %} {% if render.rows %} {% for depth, call in render.rows %} {% endfor %}
Component · {{ render.component_count }} rendered TimeOwn timeSQL
{%- if depth %}└ {% endif %}{{ call.view }} {%- if call.count > 1 %} ×{{ call.count }}{% endif %} {{ m.ms(call.ms) }} {{ m.ms(call.self_ms) }} {% if call.queries %} 1 and call.queries >= call.count else "plain" }}">{{ call.queries }}{% endif %}  

The time of a component has that of the components it renders, not that of its content, which is rendered by the one that uses it.

{% endif %} {% else %}

No view rendered

{% endfor %}

Cache · {{ record.cache_calls|length }} calls, {{ record.cache_hits }} hits, {{ record.cache_misses }} misses, {{ m.ms(record.cache_calls_ms) }}

{% if record.cache_calls %} {% for call in record.cache_calls %} {% endfor %}
#TimeCallKey
{{ loop.index }} {{ m.ms(call.ms) }} {{ call.op }}
{{ call.key }}
{% if call.hit is true %}hit{% elif call.hit is false %}miss{% endif %}
{% else %}

No calls to the cache

{% endif %}

Logs · {{ record.logs|length }} lines

{% if record.logs %} {% for line in record.logs %} {% endfor %}
AtLevelLoggerMessage
{{ m.ms(line.at) }} {% if line.level in ("ERROR", "CRITICAL") %}{{ line.level }} {%- elif line.level == "WARNING" %}{{ line.level }} {%- else %}{{ line.level }}{% endif %} {{ line.logger }}
{{ line.message }}
{% else %}

No log lines. Only what the loggers let through is here: set LOG_LEVEL = "debug" for the debug lines of Proper.

{% endif %}

Request

Route

{% if record.route_path %} {% if record.route_name %}{% endif %} {% if record.controller %}{% endif %} {% if record.action %}{% endif %}
path
{{ record.route_path }}
name
{{ record.route_name }}
controller
{{ record.controller }}
action
{{ record.action }}
{% else %}

No route matched

{% endif %} {{ m.tables(record.request_data) }}

Response

Status

status
{{ record.status }}
content type
{{ record.content_type }}
{{ m.tables(record.response_data) }} {% endblock %}