Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

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.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
746
Version
5.0.0
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
April 27, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
2
Open PRs