{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% set icon %} {% if profiler_markup_version == 1 %} Redis {{ collector.commandcount }} {% else %} {% if collector.commandcount > 0 %} {{ include('@SncRedis/Collector/icon.svg.twig') }} {{ collector.commandCount }} in {{ '%0.2f'|format(collector.time) }} ms {% endif %} {% endif %} {% endset %} {% set text %}
Queries {{ collector.commandcount }}
Query time {{ '%0.2f'|format(collector.time) }} ms
{% if collector.erroredCommandsCount > 0 %}
Failed Queries {{ collector.erroredCommandsCount }}
{% endif %} {% endset %} {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url, status: collector.erroredCommandsCount > 0 ? 'red' : '' } %} {% endblock %} {% block menu %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} Redis Redis {{ collector.commandcount }} {{ '%0.0f'|format(collector.time) }} ms {% else %} {{ include('@SncRedis/Collector/icon.svg.twig', {colors: {light: '#DDD', dark: '#999'}}) }} Redis {% if 0 != collector.erroredCommandsCount %} {{ collector.erroredCommandsCount }} {% endif %} {% endif %} {% endblock %} {% block panel %} {% set profiler_markup_version = profiler_markup_version|default(1) %}

Commands

{% if collector.commandcount == 0 %}
No commands were executed or the logger is disabled.

{% else %} {% for command in collector.commands %} {% endfor %}
# Time Connection Command
{{ loop.index }} {{ '%0.2f'|format(command.executionMS) }} ms {{ command.conn }} {{ command.cmd }} {% if command.error %}
An error occured: {{ command.error }} {% endif %}
{% endif %} {% endblock %}