{% extends "silk/base/base.html" %} {% load silk_filters %} {% load silk_inclusion %} {% block pagetitle %}Silky - cProfile - {{ silk_request.path }}{% endblock %} {% block menu %} {% request_menu request silk_request %} {% endblock %} {% block data %}

cProfile

{{ silk_request.method }} {{ silk_request.path }}{% if cprofile.calls %} · {{ cprofile.calls }} function calls in {{ cprofile.ms|dur }}{% endif %}

{% if silk_request.prof_file %} Download .prof {% endif %}
{% if silk_request.pyprofile %} {% if cprofile.rows %}
Where Python spent its time
{% for f in cprofile.rows|slice:":200" %}
{{ f.name }}{% if f.file %}{{ f.file|app_path }}:{{ f.line }}{% endif %}{{ f.ncalls }}×{{ f.value|dur }}
{% endfor %}
{% endif %} {% if silk_request.prof_file %} {% include 'silk/inclusion/callgraph.html' %} {% endif %}
Raw output
{{ silk_request.pyprofile }}
{% else %}

No cProfile output for this request.

Set SILKY_PYTHON_PROFILER = True to profile every request with cProfile.

{% endif %}
{% endblock %}