Skip to content

Instantly share code, notes, and snippets.

@atishgoswami
Created January 6, 2016 13:25
Show Gist options
  • Save atishgoswami/e2a452634b02fb1f3c65 to your computer and use it in GitHub Desktop.
Save atishgoswami/e2a452634b02fb1f3c65 to your computer and use it in GitHub Desktop.
Magento2 Profiler
#HTML Profile Output
SetEnv MAGE_PROFILER html
#CSV Profile Output
SetEnv MAGE_PROFILER csvfile
<?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