Twig Profiler

Twig Profiler lets you record profiling information on chunks of your Twig template code, so you can see how long it takes to execute.

To use Twig Profiler, just wrap any chunks of Twig code you like in:

{% profile "woof" %}
    {# code goes here #}
{% endprofile %}

The parameter you pass in (woof in the above example) should be unique per profile block, so you can identity it when looking at the profiling data.

Reload your page, and then click on the Time section of the Debug Toolbar, and you'll see your profile data.


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Report an issue