Twig Profiler allows you to profile sections of your Twig templates, and see the resulting timings in the Yii2 Debug Toolbar
This plugin requires Craft CMS 5.0.0 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require nystudio107/craft-twigprofiler
-
Install the plugin via
./craft install/plugin twig-profiler
via the CLI, or in the Control Panel, go to Settings → Plugins and click the “Install” button for Twig Profiler.
Or you can install the plugin via the Plugin Store in the Craft CMS Control Panel.
Click here -> Twig Profiler Documentation
Some things to do, and ideas for potential features:
- Release it
Brought to you by nystudio107