Output the number of rules used in the solver for profiling purposes
parent
dbdd4978a7
commit
5b1b96b61e
|
@ -50,6 +50,11 @@ class Solver
|
||||||
$this->ruleSetGenerator = new RuleSetGenerator($policy, $pool);
|
$this->ruleSetGenerator = new RuleSetGenerator($policy, $pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getRuleSetSize()
|
||||||
|
{
|
||||||
|
return count($this->rules);
|
||||||
|
}
|
||||||
|
|
||||||
// aka solver_makeruledecisions
|
// aka solver_makeruledecisions
|
||||||
private function makeAssertionRuleDecisions()
|
private function makeAssertionRuleDecisions()
|
||||||
{
|
{
|
||||||
|
|
|
@ -513,6 +513,7 @@ class Installer
|
||||||
|
|
||||||
if ($this->io->isVerbose()) {
|
if ($this->io->isVerbose()) {
|
||||||
$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies");
|
$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
|
// force dev packages to be updated if we update or install from a (potentially new) lock
|
||||||
|
|
Loading…
Reference in New Issue