1
0
Fork 0

Output the number of rules used in the solver for profiling purposes

pull/4233/head
Nils Adermann 2015-07-08 17:57:23 +02:00
parent dbdd4978a7
commit 5b1b96b61e
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,11 @@ class Solver
$this->ruleSetGenerator = new RuleSetGenerator($policy, $pool);
}
public function getRuleSetSize()
{
return count($this->rules);
}
// aka solver_makeruledecisions
private function makeAssertionRuleDecisions()
{

View File

@ -513,6 +513,7 @@ class Installer
if ($this->io->isVerbose()) {
$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies");
$this->io->writeError("Analyzed ".$solver->getRuleSetSize()." rules to resolve dependencies");
}
// force dev packages to be updated if we update or install from a (potentially new) lock