nicodemuz/doctrine-fixtures-timing-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require nicodemuz/doctrine-fixtures-timing-bundle
包简介
A Symfony bundle to load Doctrine fixtures with timing information and a top slowest fixtures report
README 文档
README
A Symfony bundle that extends the DoctrineFixturesBundle to load fixtures with timing information ⏳ and a report of the top slowest fixtures 🐢.
🚀 Installation
Install the bundle via Composer:
composer require nicodemuz/doctrine-fixtures-timing-bundle
Enable the bundle in your Symfony application by adding it to config/bundles.php:
return [ // ... Nicodemuz\DoctrineFixturesTimingBundle\DoctrineFixturesTimingBundle::class => ['dev' => true, 'test' => true], ];
🛠️ Usage
Run the command to load your fixtures with timing analysis:
php bin/console nicodemuz:doctrine:fixtures:load-with-timing
⏱️ Output Example
Top 15 Slowest Fixtures
-----------------------
------------------------------------------------------ ----------------------
Fixture Class Time Taken (seconds)
------------------------------------------------------ ----------------------
App\DataFixtures\ORM\UserFixtures 7.251
App\DataFixtures\ORM\MediaFixtures 0.537
App\DataFixtures\ORM\TagFixtures 0.336
App\DataFixtures\ORM\ForumFixtures 0.204
App\DataFixtures\ORM\SubscriptionFixtures 0.150
... ...
------------------------------------------------------ ----------------------
[✅] All 108 fixtures loaded in 24.591 seconds
⚡ Now you can easily identify and optimize the slowest fixtures in your project! 🚀
统计信息
- 总下载量: 1.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-02