masterzydra/module-profilerextension

A visual and functional extension of the standard Magento 2 profiler

Installs: 39

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

v1.0.1 2022-06-09 06:42 UTC

This package is auto-updated.

Last update: 2024-10-09 11:32:11 UTC


README

Latest Stable Version Total Downloads PHP Version Require License

Magento 2 Profiler-Extension

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 default profiler:

The profiler with the extension:

Package on Packagist.org

Installation

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

Updating to latest version

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

How it works

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

Features

Color highlighting of indentation depth

The extended profiler uses colors to better visualize the indentation depth.

Collapsing subordinate entries

By clicking on a line, the subordinate entries are shown or hidden.

Filter

Another feature are filters to limit the view to only relevant entries. A minimum time is supported as a filter. All entries which are below the given time will be hidden.