-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Magento_Profiler by SetEnv #4
Comments
What do you think about having a "index_dev.php" or somethink like this. As we have it on Symfony or other frameworks. |
Hi mzeis -- Currently in app/bootstrap.php the profiler enabling is hard-coded like this: #Magento_Profiler::enable();
#Magento_Profiler::registerOutput(new Magento_Profiler_Output_Html());
#Magento_Profiler::registerOutput(new Magento_Profiler_Output_Firebug());
#Magento_Profiler::registerOutput(new Magento_Profiler_Output_Csvfile(__DIR__ . '/var/log/profiler.csv')); How would you suggest to organize the |
Hi, I suggest the following solution:
This way profiling gets more comfortable and flexible. You can extend existing profiler formatters or create new ones, you can create a handy configuration interface. |
We have implemented enabling profiler, as well as the output, in bootstrap by specifying |
Thanks! |
MAGETWO-32077: [GITHUB] Fix spelling error in Customer module xml :Magento Go #853
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:
One or more additional environment variables can allow to register the profile output classes.
Advantages:
The text was updated successfully, but these errors were encountered: