{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block head %} {{ parent() }} {% endblock %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% set icon %} {% if profiler_markup_version == 1 %} elastica {{ collector.querycount }} {% if collector.querycount > 0 %} in {{ '%0.2f'|format(collector.time) }} ms {% endif %} {% else %} {{ include('@FOSElastica/Collector/icon.svg') }} {{ collector.querycount }} {% if collector.querycount > 0 %} in {{ '%0.2f'|format(collector.time) }} ms {% endif %} {% endif %} {% endset %} {% set text %}
Queries {{ collector.querycount }}
Query Time {{ '%0.2f'|format(collector.time) }} ms
Execution Time {{ '%0.2f'|format(collector.executionTime) }} ms
{% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } %} {% endblock %} {% block menu %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} {% else %} {{ include('@FOSElastica/Collector/icon.svg') }} {% endif %} Elastica {% endblock %} {% block panel %}

Query Metrics

{{ collector.querycount }} Database Queries
{{ '%0.2f'|format(collector.executionTime) }} ms Execution Time
{{ '%0.2f'|format(collector.time) }} ms Query Time

Queries

{% if not collector.querycount %}

No queries were performed.

{% else %} {% for key, query in collector.queries %} {% endfor %}
# Execution Time Query Time Info
{{ loop.index }} {{ '%0.2f'|format(query.executionMS) }} ms {{ '%0.2f'|format(query.engineMS) }} ms
{% for data in query.data %}
{{ data|json_encode(constant('JSON_UNESCAPED_UNICODE')) }}
{% endfor %}
Path: {{ query.path }}
Query: {{ query.queryString|url_encode }}
Method: {{ query.method }} ({{ query.connection.transport }} on {{ query.connection.host }}:{{ query.connection.port }})
Item count: {{ query.itemCount }}
View formatted query {% if query.connection.transport in ['Http', 'Https'] %}{# cURL support only HTTP #}   View cURL query {% endif %} {% if query.backtrace is defined %}   View query backtrace {% endif %}
{% if query.connection.transport in ['Http', 'Https'] %}{# cURL support only HTTP #} {% endif %} {% if query.backtrace is defined %} {% endif %}
{% endif %} {% endblock %}