1
0
Fork 0

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

Output the number of rules used in the solver for profiling purposes
pull/4163/head
Nils Adermann 2015-07-08 19:10:35 +02:00
commit 5d7036e740
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