{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %}
{% endblock %} {% block menu %} {{ include('@SonataBlock/Profiler/icon.svg') }} Blocks{% if collector.events|length > 0 %}*{% endif %} {{ collector.getTotalBlock() }} {% endblock %} {% block panel %}code name | listener tag | Block types | Listeners |
---|---|---|---|
{{ event['template_code'] }} | {{ event['event_name'] }} | {% for type in event['blocks'] %} {{ type.1 }} (id:{{ type.0 }}) {% else %} no block returned {% endfor %} | {% for listener in event['listeners'] %} {{ listener }} {% else %} no listener registered {% endfor %} |
Id | Name | Type | Mem. (diff) | Mem. (peak) | Duration |
---|---|---|---|---|---|
{{ id }} | {{ block.name }} | {{ block.type }} | {{ ((block.memory_end-block.memory_start)/1000)|number_format(0) }} Kb | {{ (block.memory_peak/1000)|number_format(0) }} Kb | {{ block.duration|number_format(2) }} ms |
Cache Keys: {{ block.cache.keys|json_encode() }} Contextual Keys: {{ block.cache.contextual_keys|json_encode() }} |
TTL: {{ block.cache.ttl }}s. Lifetime: {{ block.cache.lifetime }}s. Backend: {{ block.cache.handler }} Loading from cache: {% if block.cache.from_cache %}YES{% else %}NO{% endif %} |
||||
Javascripts: {{ block.assets.js|json_encode() }} Stylesheets: {{ block.assets.css|json_encode() }} |
Block {{ id }} | |
---|---|
Name | {{ block.name }} |
Type | {{ block.type }} |
Mem. diff / Mem. peak / Duration | {{ ((block.memory_end-block.memory_start)/1000)|number_format(0) }} Kb / {{ (block.memory_peak/1000)|number_format(0) }} Kb / {{ block.duration|number_format(2) }} ms |
Cache backend | {{ block.cache.handler }} - Loading from cache: {% if block.cache.from_cache %}YES{% else %}NO{% endif %} |
Cache TTL / Lifetime | {{ block.cache.ttl }}s. / {{ block.cache.lifetime }}s |
Cache Informations |
Cache Keys: {{ block.cache.keys|json_encode() }} Contextual Keys: {{ block.cache.contextual_keys|json_encode() }} |
Assets |
Javascripts: {{ block.assets.js|json_encode() }} Stylesheets: {{ block.assets.css|json_encode() }} |