PHPackages                             ecocode/magento\_profiler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. ecocode/magento\_profiler

ActiveMagento-module[Logging &amp; Monitoring](/categories/logging)

ecocode/magento\_profiler
=========================

Web Profiler for Magento 1.x

v1.3.1(2y ago)627.3k10[1 PRs](https://github.com/ecoco/magento_profiler/pulls)MITPHPPHP &gt;=5.5.9

Since Sep 27Pushed 2y ago12 watchersCompare

[ Source](https://github.com/ecoco/magento_profiler)[ Packagist](https://packagist.org/packages/ecocode/magento_profiler)[ Docs](https://github.com/ecoco/magento_profiler)[ RSS](/packages/ecocode-magento-profiler/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (9)Versions (15)Used By (0)

ecocode Profiler - Magento 1.x Web Profiler
===========================================

[](#ecocode-profiler---magento-1x-web-profiler)

[![Build Status](https://camo.githubusercontent.com/937757833f89218a9233249048aece645f9b2f76d21e51f8d390812c3899be77/68747470733a2f2f7472617669732d63692e6f72672f65636f636f2f6d6167656e746f5f70726f66696c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ecoco/magento_profiler)[![Coverage Status](https://camo.githubusercontent.com/2b92c26c8ceee2ea3bf4aabce8a02e4b4e376fb233dee71d2bdb5173bff933fd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f65636f636f2f6d6167656e746f5f70726f66696c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ecoco/magento_profiler?branch=master)[![Code Climate](https://camo.githubusercontent.com/1a08425fea4b68ba5e47814a5f4540f767af5f95504c8ae3ee49af3102fb41a9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f65636f636f2f6d6167656e746f5f70726f66696c65722f6261646765732f6770612e737667)](https://codeclimate.com/github/ecoco/magento_profiler)[![SensioLabsInsight](https://camo.githubusercontent.com/176c5169f334256f4728b3af7ab104f595f14536cd7af51285bc66d05c7dd3b6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66383663363335342d353630342d343437322d386335392d6461613366373164616435342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f86c6354-5604-4472-8c59-daa3f71dad54)

The ecocode profiler provides a development toolbar for Magento which displays a wide range of metrics and page load data for all the pages of the shop. It gives you direct access to the page's database queries, memory usage, events, requests, layout rendering, translation resolution and many other useful statistics. It is also easily extendable if you need to track additional metrics.

This profiler is based on the awesome [Symfony WebProfiler](https://github.com/symfony/web-profiler-bundle). The concept and code of the WebProfiler have been ported to assist with Magento as much as possible.

Requirements
------------

[](#requirements)

- php &gt;= 5.5.9
- magento &lt; 2

Tested with magento 1.7, 1.8. 1.9

Demo Stores:

- [Profiler with Magento 1.9.2.4](http://1.9.2.4.magento-profiler.ecocode.de/dev.php)

---

[![Toolbar](/docs/image/toolbar.jpg "Toolbar")](/docs/image/toolbar.jpg)

[![Profiler](/docs/image/profiler.jpg "Profiler")](/docs/image/profiler.jpg)

[More Images](docs/images.md)

Installation
------------

[](#installation)

### Composer (recommended)

[](#composer-recommended)

If you have not already configured [magento-composer-installer](https://github.com/Cotya/magento-composer-installer) add

```
"extra": {
   "magento-root-dir": "httpdocs/"
 }

```

to your **composer.json**. If your magento root dir is the same directory as the one containing your **composer.json** use `"."` as the `magento-root-dir`

`composer require --dev ecocode/magento_profiler`

### Manually

[](#manually)

Download the module and copy the **app** folder + "dev.php" into your magento root directory

If you install the module manually, it will miss some functionality until you install the dependencies. This is currently only possible via composer as we do need the composer autoloader.

To install the dependencies run the following from your magento root dir or a parent directory:

```
composer require --dev symfony/debug 3.0
composer require --dev symfony/stopwatch 3.2
composer require --dev symfony/yaml 3.1
composer require --dev jdorn/sql-formatter ~1.2
composer require --dev monolog/monolog 1.11

```

### Magento Connect

[](#magento-connect)

[ecocode Profiler](https://www.magentocommerce.com/magento-connect/ecocode-profiler.html)

### Webserver Config

[](#webserver-config)

It might be necessary to extend your webserver config to handle "dev.php" correctly. If your experiencing a 404 when you try to access "dev.php"

### Nginx:

[](#nginx)

try adding the following to your nginx config before the php location definition:

```
location /dev.php/ {
    rewrite / /dev.php;
}

```

---

#### Apache:

[](#apache)

nothing to do here, should run out of the box

Usage
-----

[](#usage)

The profiler is only enabled if you open your shop via `http://myshop.local/dev.php/`. The idea is to develop always in dev mode alias "dev.php" and only switch back to "production" from time to time to verify the result.

Features
--------

[](#features)

- Improved exception handling in dev mode with the [symfony/debug](https://github.com/symfony/debug). No more checking the log files!
- Easily extendable, just add a new **collector** via your configuration

Collectors
----------

[](#collectors)

- Request/Response
    - Display of request/response server parameters
- Memory
    - Display of memory usage
- Time
    - New visualization of the varien profiler
- Mysql
    - Display of all queries with syntax highlighting and stack traces to locate the origin
    - Queries by context so you can easily determine the origin block
    - **Detection of identical** queries that can be avoided
    - Metrics for "mysql crud" operations
    - Support for multiple database connections
- Events
    - Display of all events that have been fired during page load
    - List of all called observers
- Ajax
    - Recording of ajax calls
- Customer
    - Display of customer group and tax class
- Layout
    - Metrics including created and rendered blocks and total rendering time
    - List of layout handlers used
    - List of blocks created but not rendered
    - Call graph including rendering times by block, including and excluding children
- Translations
    - Display of translations that are defined, missing, invalid or are using a fallback
- Rewrites
    - Detection of rewrites and rewrite conflicts (credits to [magen98-magerun](https://github.com/netz98/n98-magerun) for the detection)
- Logs
    - Display of all `Mage::log` calls
- Models
    - Display of all model load, delete and save calls
    - **Detection of "load" calls within loops!**
- Cache
    - Display of current cache configuration including the option to enable/disable and flush from the profiler
    - Display of all cache calls including not-for-cache **hits** and **misses**
- Configuration
    - Base PHP configuration
    - Option to view `phpinfo()`
    - Basic magento configuration
    - Display of enabled and disabled modules

Security
--------

[](#security)

It is safe to add this module to your own vcs by default. The profiler is only active when you are visiting your page via "dev.php", which is restricted to request from localhost by default.

If you are using a vm you have to allow your host system to access the profiler. This can be done by modify the webserver config or the dev.php itself

Webserver: To allow the access to the profiler you have to set "$\_SERVER\['ALLOW\_PROFILER'\] = 1"

Nginx: `fastcgi_param ALLOW_PROFILER '1';`Apache: `SetEnv ALLOW_PROFILER "1"`

Unlock special features
-----------------------

[](#unlock-special-features)

- **Open files in your editor**

    As symfony does, the profiler also widely supports "xdebug.file\_link\_format". If set up correctly it will allow you to click on most file references in the profiler to directly open it in your editor:

    Example for PHP Storm
    `xdebug.file_link_format = "//localhost:63342/api/file/%f:%l"`
    Note: ommit the "protocol" in the link to make sure it will work on http and https without the need open a new tap

    If you are using a virtual machine dont forget to also set "Host Magento Root Path" in the settings section. You can also set the "file\_link\_format" in the settings section directly.

TODO
----

[](#todo)

- Improve docs
- "how to extend"
- capture emails
- performance tab

Mixed
-----

[](#mixed)

If you get a `gateway timeout 503` instead of an error message please try to adjust your nginx config

```
http {
    ...
    fastcgi_buffers 8 16k;
    fastcgi_buffer_size 32k;
    ...
}

```

Need help?
----------

[](#need-help)

Feel free to contact me

Thanks to
---------

[](#thanks-to)

- [symfony/debug](https://github.com/symfony/debug) for the awesome debug component
- [magen98-magerun](https://github.com/netz98/n98-magerun) for the rewrite conflict detection
- [Symfony WebProfiler](https://github.com/symfony/web-profiler-bundle)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~282 days

Recently: every ~631 days

Total

10

Last Release

975d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

v1.1.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/d966f08e7aaaf0ad53ce2d344e06409de1004b5eb079138e70ba0b5e98f90498?d=identicon)[j.krapp](/maintainers/j.krapp)

---

Top Contributors

[![Fantus](https://avatars.githubusercontent.com/u/1288316?v=4)](https://github.com/Fantus "Fantus (149 commits)")

---

Tags

loggingprofilertoolbarperformancemagento

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ecocode-magento-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/ecocode-magento-profiler/health.svg)](https://phpackages.com/packages/ecocode-magento-profiler)
```

###  Alternatives

[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[blackfire/php-sdk

Blackfire.io PHP SDK

15912.6M28](/packages/blackfire-php-sdk)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[pana1990/php-web-profiler

Web profiler in the browser for php application

131.3k](/packages/pana1990-php-web-profiler)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
