{% extends "silk/base/detail_base.html" %} {% load silk_filters %} {% load silk_nav %} {% load silk_inclusion %} {% load static %} {% block pagetitle %}Silky - Profile Detail - {{ silk_request.path }}{% endblock %} {% block js %} {{ block.super }} {% endblock %} {% block style %} {{ block.super }} {% endblock %} {% block menu %} {% profile_menu request profile silk_request %} {% endblock %} {% block data %}
{# ── Profile summary hero ── #}
{{ profile.start_time | silk_full_datetime }}
{% if profile.name %}{{ profile.name }}{% elif profile.func_name %}{{ profile.func_name }}{% endif %}
{{ profile.time_taken|floatformat:"0" }}ms {{ profile.time_spent_on_sql_queries|floatformat:"0" }}ms DB {{ profile.queries.count }} queries
{# ── Source location ── #}

{% if profile.file_path and profile.line_num %} {{ profile.file_path }}:{{ profile.line_num }}{% if profile.end_line_num %}–{{ profile.end_line_num }}{% endif %} {% else %} Location {% endif %}

Where in your code this profile was defined.

{% if code %} {% code code actual_line %} {% elif code_error %}

{{ code_error }}

{% endif %}
{# ── Profile graph ── #} {% if silk_request.prof_file %}

Profile Graph

Call graph coloured by time (red = slower). Prune nodes taking less than % of total time.

{% url 'silk:request_profile_dot' request_id=silk_request.pk as profile_dot_url %} {{ profile_dot_url|json_script:'profileDotURL' }} {% endif %} {# ── Python profiler output ── #} {% if silk_request.pyprofile %}

Python Profiler

Raw dump from the cPython profiler. {% if silk_request.prof_file %} Download .prof file {% endif %}

{{ silk_request.pyprofile }}
{% endif %}
{% endblock %}