Skip to content

Profiling

Magento 2 Profiler Options

Magento 2 provides two different profiler modes - one for timing, and one for tracking dependencies.

The profiler can be triggered with a MAGE_PROFILER environment variable:

  • 1 or html provides a table at the bottom of the page
  • csvfile outputs a CSV file to var/log/profiler.csv
  • 2 outputs a list of nested dependencies

Magento Profiler documentation

Third party profilers

Mirasvit provides a profiler which presents information a little more clearly, which can be found at http://github.com/mirasvit/module-profiler.

They provide a demo at http://profiler.m2.mirasvit.com/profiler/profile/index/