{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} {% set icon %}
{% endset %} {% set text %} {% if collector.erroredCommandsCount > 0 %} {% endif %} {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url, status: collector.erroredCommandsCount > 0 ? 'red' : '' } %} {% elseif collector.commandcount > 0 %} {% set icon %} {{ include('@SncRedis/Collector/icon.svg.twig') }} {% endset %} {% set text %} {% if collector.erroredCommandsCount > 0 %} {% endif %} {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url, status: collector.erroredCommandsCount > 0 ? 'red' : '' } %} {% endif %} {% endblock %} {% block menu %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} Redis {{ collector.commandcount }} {{ '%0.0f'|format(collector.time) }} ms {% else %} {{ include('@SncRedis/Collector/icon.svg.twig', {colors: {light: '#DDD', dark: '#999'}}) }} Redis {% if collector.erroredCommandsCount > 0 %} {{ collector.erroredCommandsCount }} {% endif %} {% endif %} {% endblock %} {% block panel %} {% set profiler_markup_version = profiler_markup_version|default(1) %}No commands were executed or the logger is disabled.
# | Time | Connection | Command |
---|---|---|---|
{{ loop.index }} | {{ '%0.2f'|format(command.executionMS) }} ms | {{ command.conn }} |
{{ command.cmd }}
{% if command.error %}
An error occured: {{ command.error }} {% endif %} |