From 66f64488d253ef800ff52c3ae4b133168a68ab6a Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 9 Jun 2011 09:00:28 +0200 Subject: [PATCH 1/2] Update ChangeLog. --- ChangeLog.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ChangeLog.markdown b/ChangeLog.markdown index c412ecc01..4bdf71d55 100644 --- a/ChangeLog.markdown +++ b/ChangeLog.markdown @@ -3,6 +3,11 @@ PHP_CodeCoverage 1.0 This is the list of changes for the PHP_CodeCoverage 1.0 release series. +PHP_CodeCoverage 1.0.5 +---------------------- + +* Fixed sorting of top project risks. + PHP_CodeCoverage 1.0.4 ---------------------- From a514082994e73157077949948b61c447ff986330 Mon Sep 17 00:00:00 2001 From: scottbrady Date: Tue, 21 Jun 2011 12:41:15 -0700 Subject: [PATCH 2/2] Delete the source code from the token cache when we're done calculating statistics. This greatly reduces memory usage when running coverage against many files. Paired with Mark French. --- PHP/CodeCoverage/Report/HTML/Node/File.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PHP/CodeCoverage/Report/HTML/Node/File.php b/PHP/CodeCoverage/Report/HTML/Node/File.php index 7643e940a..0fa19e384 100644 --- a/PHP/CodeCoverage/Report/HTML/Node/File.php +++ b/PHP/CodeCoverage/Report/HTML/Node/File.php @@ -169,6 +169,8 @@ public function __construct($name, PHP_CodeCoverage_Report_HTML_Node $parent, ar ); $this->calculateStatistics(); + + PHP_Token_Stream_CachingFactory::delete($path); } /**