From 32da10dc2c9932a631def188a14f9f8ec0b1cad8 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Sat, 19 Feb 2022 12:47:35 +0100 Subject: [PATCH] Improve the pool optimizer logging (#10545) --- src/Composer/DependencyResolver/PoolBuilder.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Composer/DependencyResolver/PoolBuilder.php b/src/Composer/DependencyResolver/PoolBuilder.php index 8ca7050fd..69769ca7f 100644 --- a/src/Composer/DependencyResolver/PoolBuilder.php +++ b/src/Composer/DependencyResolver/PoolBuilder.php @@ -287,6 +287,8 @@ class PoolBuilder $this->skippedLoad = array(); $this->indexCounter = 0; + $this->io->debug('Built pool.'); + $pool = $this->runOptimizer($request, $pool); Intervals::clear(); @@ -690,6 +692,9 @@ class PoolBuilder return $pool; } + $this->io->debug('Running pool optimizer.'); + + $before = microtime(true); $total = \count($pool->getPackages()); $pool = $this->poolOptimizer->optimize($request, $pool); @@ -700,6 +705,7 @@ class PoolBuilder return $pool; } + $this->io->write(sprintf('Pool optimizer completed in %.3f seconds', microtime(true) - $before), true, IOInterface::VERY_VERBOSE); $this->io->write(sprintf( 'Found %s package versions referenced in your dependency graph. %s (%d%%) were optimized away.', number_format($total),