使用性能 (MAGE_PROFILER)
Magento 2 使用性能(MAGE_PROFILER)介绍
- 
              
使用内置分析器(built-in profiler).
你可以使用Magento 2 内置分析器(built-in profiler)来执行任务,如性能分析。分析的本质取决于你使用的分析工具。支持多种格式,包括HTML。)
 
Magento提供的基础功能 Magento\Framework\Profiler.
设置 MAGE_PROFILER
MAGE_PROFILER 支持以下值:
- 
              
1启用特定的profiler输出.还可以使用下列方法启用特定的探查器:
- 
firebug它使用 Magento\Framework\Profiler\Driver\Standard\Output\Firebug - 
csvfile它使用 Magento\Framework\Profiler\Driver\Standard\Output\Csvfile - 其他值使用 Magento\Framework\Profiler\Driver\Standard\Output\Html
 
 - 
 - 
              
2启用依赖图.依赖图通常显示在页面的底部。下图显示输出的一部分 :

 
你可以以任何的方式设置 MAGE_PROFILER  设置引导参数.