pixers / doctrine-profiler-bundle
PIXERS Doctrine profiler bundle
Installs: 155 001
Dependents: 0
Suggesters: 0
Security: 0
Stars: 48
Watchers: 9
Forks: 10
Open Issues: 5
Type:symfony-bundle
Requires
- php: >=7.1
- doctrine/doctrine-bundle: ~1.6
- doctrine/orm: ~2.5
- symfony/framework-bundle: ~2.8 || ~3.4 || ~4.1
- symfony/stopwatch: ~2.8 || ~3.4 || ~4.1
- symfony/twig-bundle: ~2.8 || ~3.4 || ~4.1
- twig/twig: ^1.38 || ^2.0
Requires (Dev)
- phpunit/phpunit: ~5.0
README
PixersDoctrineProfilerBundle enables new panel in Symfony debug toolbar that allows you to profile performance of your database queries.
It provides extensive information about Doctrine queries execution time and memory. It also allows you to spot inefficient places of your application by showing hot spots in a call graph.
Features:
-
Detailed query profile
- Memory usage
- Cache info
- Duplicated queries detection
-
Hydration profiling
- Type and time of hydration
- Visualization in performance panel (execution timeline)
-
Query origin
- Call graph with metrics aggregated across code
- Stacktrace of the queries
Installation
Installation is a two step process.
-
Install this bundle using Composer:
$ composer require pixers/doctrine-profiler-bundle
-
Enable bundle in AppKernel (only in dev and test environments):
// in AppKernel::registerBundles() if (in_array($this->getEnvironment(), array('dev', 'test'))) { // ... $bundles[] = new Pixers\DoctrineProfilerBundle\PixersDoctrineProfilerBundle(); }
Screens
Toolbar:
Call graph:
Queries:
Stacktrace:
About
DoctrineProfilerBundle is an initiative of PIXERS:
- Bartłomiej Ojrzeński bartlomiej.ojrzenski@pixers.pl
- Antoni Orfin antoni@scalebeat.com
License
Copyright 2017 PIXERS Ltd - www.pixersize.com
Licensed under the BSD 3-Clause