Stars: 161
Forks: 42
Pull Requests: 59
Issues: 73
Watchers: 24
Last Updated: 2023-02-25 14:41:04
This plugin allows you to profile your Shopware 5 application
License: MIT License
Languages: PHP, Smarty, Shell, JavaScript, Less
Profiling for Shopware
Version | Requirements | Availability |
---|---|---|
1.3 | Min. Shopware 5.2, PHP 5.6 | Github & Community Store |
1.4 | Min. Shopware 5.6, PHP 7.2 | Github & Community Store |
Please create Pull Requests to the lowest version
FroshProfiler-1.3.6.zip
)/custom/plugins/FroshProfiler
composer install
to install the dependenciescomposer require frosh/shopware-profiler
and install and active plugin with Plugin ManagerStarting with 1.3.0 profiler does also support var dump server from Symfony 4.1.
./bin/console server:dump --format=html > dump.html
dump()
in your code and open dump.html in your Browser.$this->get('frosh_profiler.stop_watch')->start('Watch Name');
// Your code
$this->get('frosh_profiler.stop_watch')->stop('Watch Name');
Go to Performance tab, and your custom events are shown there
Will log ...
... PubSub events:
... Plugin registration:
... Breakpoint change:
... Plugin initialization:
You can filter output by ...
To set filter use the javascript console and the following functions, corresponding to each filter:
StateDebug.setFilterType('publish');
StateDebug.setFilterEvent(['onTrackItems', 'onSetSizes']);
StateDebug.setFilterPlugin('swAjaxVariant');
You can pass a single filter criteria as string or an array of multiple filter criterias.
Type criterias need to be exact and valid (see above). Event and plugin name criterias can include part of the name.
To reset filter criterias call the functions without any arguments.
Backend Profiling can be enabled in plugin configuration. The Profile link can be retrieved from the Request Response Header "X-Profiler-URL"