Content
The vision is a profiler similar to the AOE Profiler for Magento 1. The profiler extension shall use JS and CSS to add the styling and functionality based on the basic table returned by Magento 2.
The profiler with the extension:
This Magento2 module can be installed using composer:
> composer require masterzydra/module-profilerextension
To remove it from the list of required packages use the following command:
> composer remove masterzydra/module-profilerextension
With the following command composer checks all packages in the composer.json for the latest version:
> composer update
If you only want to check this package for newer versions, you can use
> composer update masterzydra/module-profilerextension
After installing the package via composer, the module calls a JavaScript function in the footer. This function will detect the profiler table, adds the filters and adds the classes for the CSS.
Enable the profiler
> bin/magento dev:profiler:enable
Disable the profiler
> bin/magento dev:profiler:disable
The extended profiler uses colors to better visualize the indentation depth.
By clicking on a line, the subordinate entries are shown or hidden.
Another feature are filters to limit the view to only relevant entries. You can filter for a timer id that contains a given text or for timers with a given minimum time. If you add multiple filters all filters must match.