diff --git a/examples/TemplateChecker.php b/examples/TemplateChecker.php index 42de680cb..d4fb9bce4 100644 --- a/examples/TemplateChecker.php +++ b/examples/TemplateChecker.php @@ -19,7 +19,6 @@ class TemplateChecker extends Psalm\Checker\FileChecker public function analyze(Context $context = null, $update_docblocks = false) { $codebase = $this->project_checker->getCodebase(); - $this->project_checker->enableCheckerCache(); $stmts = $codebase->getStatementsForFile($this->file_path); if (empty($stmts)) { @@ -67,8 +66,6 @@ class TemplateChecker extends Psalm\Checker\FileChecker } $this->checkWithViewClass($this_params, $stmts); - - $this->project_checker->disableCheckerCache(); } /** diff --git a/src/Psalm/Codebase/Analyzer.php b/src/Psalm/Codebase/Analyzer.php index ee2d6d301..4b3a41174 100644 --- a/src/Psalm/Codebase/Analyzer.php +++ b/src/Psalm/Codebase/Analyzer.php @@ -136,8 +136,6 @@ class Analyzer } $file_checker->analyze(null); - - echo 'Current memory: ' . number_format(memory_get_usage() / (1024 * 1024), 3) . 'MB' . "\n"; }; if ($pool_size > 1 && count($this->files_to_analyze) > $pool_size) {