{% block toolbar %} {% set icon %} {% set status_color = (collector.memory / 1024 / 1024) > 50 ? 'yellow' %} {{ include('@webprofiler/Icon/memory.svg') }} {{ '%.1f'|format(collector.memory / 1024 / 1024) }} MiB {% endset %} {% set text %}
Peak memory usage {{ '%.1f'|format(collector.memory / 1024 / 1024) }} MiB
PHP memory limit {{ collector.memoryLimit == -1 ? 'Unlimited' : '%.0f MiB'|format(collector.memoryLimit / 1024 / 1024) }}
{% endset %} {{ include('@webprofiler/Profiler/toolbar_item.html.twig', { link: false, name: 'time', status: status_color }) }} {% endblock %}