magento/magento2 — Issue #4: Enable Magento_Profiler by SetEnv
Author: mzeis
Created: 2011-12-15 07:07:44+00:00
State: open

As of Magento 1, you have to edit index.php to activate Magento_Profiler.
In my opinion, it should not be necessary to edit any core files.

My proposal is to introduce code to app/bootstrap.php similar to:
```php
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
```
One or more additional environment variables can allow to register the profile output classes.

Advantages:
* No need to edit app/bootstrap.php
* It's easy to set different settings for every environment (dev/stage/live etc.)