Merge pull request #4233 from naderman/output-ruleset-size

Output the number of rules used in the solver for profiling purposes
main
Nils Adermann 9 years ago
commit 5d7036e740

@ -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()
{

@ -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

Loading…
Cancel
Save