Created
January 6, 2016 13:25
-
-
Save atishgoswami/e2a452634b02fb1f3c65 to your computer and use it in GitHub Desktop.
Magento2 Profiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#HTML Profile Output | |
SetEnv MAGE_PROFILER html | |
#CSV Profile Output | |
SetEnv MAGE_PROFILER csvfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Directly add Server Varible on index.php at the top | |
//Make sure the server variable is declared before the require of bootstrap.php | |
$_SERVER['MAGE_PROFILER'] = "csvfile";// var/log/profiler.csv will be created | |
$_SERVER['MAGE_PROFILER'] = "html";//At the page bottom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment