{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% if collector.totals.calls > 0 %} {% set icon %} {{ include('@WebProfiler/Icon/cache.svg') }} {{ collector.totals.calls }} in {{ '%0.2f'|format(collector.totals.time * 1000) }} ms {% endset %} {% set text %}
Cache Calls {{ collector.totals.calls }}
Total time {{ '%0.2f'|format(collector.totals.time * 1000) }} ms
Cache hits {{ collector.totals.hits }} / {{ collector.totals.reads }}{% if collector.totals.hit_read_ratio is not null %} ({{ collector.totals.hit_read_ratio }}%){% endif %}
Cache writes {{ collector.totals.writes }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }} {% endif %} {% endblock %} {% block menu %} {{ include('@WebProfiler/Icon/cache.svg') }} Cache {% endblock %} {% block panel %}

Cache

{% if collector.totals.calls == 0 %}

No cache calls were made.

{% else %}
{{ collector.totals.calls }} Total calls
{{ '%0.2f'|format(collector.totals.time * 1000) }} ms Total time
{{ collector.totals.reads }} Total reads
{{ collector.totals.writes }} Total writes
{{ collector.totals.deletes }} Total deletes
{{ collector.totals.hits }} Total hits
{{ collector.totals.misses }} Total misses
{{ collector.totals.hit_read_ratio ?? 0 }} % Hits/reads

Pools

{% for name, calls in collector.calls %}

{{ name }} {{ collector.statistics[name].calls }}

{% if calls|length == 0 %}

No calls were made for {{ name }} pool.

{% else %}

Metrics

{% for key, value in collector.statistics[name] %}
{% if key == 'time' %} {{ '%0.2f'|format(1000 * value) }} ms {% elseif key == 'hit_read_ratio' %} {{ value ?? 0 }} % {% else %} {{ value }} {% endif %} {{ key == 'hit_read_ratio' ? 'Hits/reads' : key|capitalize }}
{% if key == 'time' or key == 'deletes' %}
{% endif %} {% endfor %}

Calls

{% for call in calls %} {% endfor %}
# Time Call Hit
{{ loop.index }} {{ '%0.2f'|format((call.end - call.start) * 1000) }} ms {{ call.name }}() {{ profiler_dump(call.value.result, maxDepth=2) }}
{% endif %}
{% endfor %}
{% endif %} {% endblock %}