More detailed performance metric logging.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5803 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Ryan Gustafson
2008-02-27 19:41:09 +00:00
parent 8cfec413d6
commit 201f6b518c

View File

@@ -209,7 +209,13 @@ public class ReviewCodeCmd extends AbstractDefaultCommand {
PMDRuntimePlugin.getDefault().logInformation(
"Review code command terminated. " + this.rulesCount + " rules were executed against " + this.filesCount
+ " files. Actual PMD duration is about " + this.pmdDuration + "ms, that is about "
+ (this.pmdDuration / ((long) this.filesCount * (long) this.rulesCount)));
+ ((float)this.pmdDuration / (this.filesCount))
+ " ms/file, "
+ ((float)this.pmdDuration / (this.rulesCount))
+ " ms/rule, "
+ ((float)this.pmdDuration / ((long) this.filesCount * (long) this.rulesCount))
+ " ms/filerule"
);
} else {
PMDRuntimePlugin.getDefault().logInformation(
"Review code command terminated. " + this.rulesCount + " rules were executed against " + this.filesCount