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.

Active Installs
635
Version
4.0.0-beta.1
License
MIT
Compatibility
Craft 3, Craft 4
Last release
March 14, 2022
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs