From 201f6b518c11a9a547b0bd04dd51e86b2b2c82c8 Mon Sep 17 00:00:00 2001 From: Ryan Gustafson Date: Wed, 27 Feb 2008 19:41:09 +0000 Subject: [PATCH] More detailed performance metric logging. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5803 51baf565-9d33-0410-a72c-fc3788e3496d --- .../net/sourceforge/pmd/runtime/cmd/ReviewCodeCmd.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pmd-eclipse-plugin/pmd-eclipse-runtime/src/net/sourceforge/pmd/runtime/cmd/ReviewCodeCmd.java b/pmd-eclipse-plugin/pmd-eclipse-runtime/src/net/sourceforge/pmd/runtime/cmd/ReviewCodeCmd.java index 1827c80ad1..4a8d0f276d 100644 --- a/pmd-eclipse-plugin/pmd-eclipse-runtime/src/net/sourceforge/pmd/runtime/cmd/ReviewCodeCmd.java +++ b/pmd-eclipse-plugin/pmd-eclipse-runtime/src/net/sourceforge/pmd/runtime/cmd/ReviewCodeCmd.java @@ -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