{% extends "base.html" %} {% block title %}FlowSurgeon — Requests{% endblock %} {% block topbar %} {% endblock %} {% block content %} {# Pagination base URL always uses view=latency so page links land on the latency tab #} {% set pb = debug_route + "?view=latency" %} {% if q %}{% set pb = pb + "&q=" + q %}{% endif %} {% if order and order != "queries" %}{% set pb = pb + "&order=" + order %}{% endif %} {% if show and show != 25 %}{% set pb = pb + "&show=" + show|string %}{% endif %} {% set pb = pb + "&" %}
{# ── Section header ── #}

Requests

{{ total_records }} request{% if total_records != 1 %}s{% endif %}
{# ── Controls row: tab buttons (left) + filters (right) ── #}
Path: Show: Order:
{# ── Latency & Queries panel ── #}
{% if records %}
{% for r in records %} {% set qms = namespace(val=0.0) %} {% for qr in r.queries %}{% set qms.val = qms.val + qr.duration_ms %}{% endfor %}
{{ r.status_code }} {{ r.method }}
{{ r.path }} {{ "%.0f"|format(r.duration_ms) }}ms overall {{ "%.0f"|format(qms.val) }}ms on queries · {{ r.queries | length }} quer{% if r.queries | length != 1 %}ies{% else %}y{% endif %}
{% endfor %}
{% else %}
No requests recorded{% if q %} matching “{{ q }}”{% endif %}.
{% endif %} {% if total_pages > 1 %}
Showing {{ page_start }}–{{ page_end }} of {{ total_records }} requests
{% endif %}
{# ── Profiling panel ── #}
Profiling {% if profiling_enabled %} Call-stack profiling is enabled — open any request and click the Profile tab to inspect its call graph. {% else %} Enable enable_profiling=True in Config to capture per-request call-stack data. {% endif %}
{% endblock %}