debesha/doctrine-hydration-profiler-bundle

在分析器中关于 doctrine 实体加湿的信息

安装次数: 479,175

依赖项: 1

建议者: 0

安全: 0

星标: 128

关注者: 8

分支: 16

公开问题: 3

类型:symfony-bundle

1.4.2 2024-06-28 09:15 UTC

README

用于获取 doctrine 加湿性能信息的包

目的

在 Web 分析器中添加一个部分,列出在生成响应期间执行的所有 doctrine 加湿。

安装

composer require "debesha/doctrine-hydration-profiler-bundle"

然后运行 php composer.phar update

下一步是在 AppKernel ( app/AppKernel.php) 中注册该包

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    [...]
    $bundles[] = new Debesha\DoctrineProfileExtraBundle\DebeshaDoctrineProfileExtraBundle();
}

注意!包必须在 DoctrineBundle 之后被包含。

这就完成了。

截图

您的分析器将新增一个部分,您可以在其中查看加湿的快慢以及加湿了多少个实体。

Screenshot

Screenshot