Coder Social home page Coder Social logo

masterzydra / magento-2-profiler-extension Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 410 KB

A Magento2 module that extends the profiler with functionality and styling using JS and CSS

Home Page: https://packagist.org/packages/masterzydra/module-profilerextension

License: MIT License

JavaScript 73.68% PHP 8.40% HTML 4.08% CSS 13.84%
magento magento2 profiler

magento-2-profiler-extension's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.