GMetrics Report: Sample

Report timestamp: Sep 3, 2012 7:33:30 PM

Metric Results

Package/Class/MethodComplexity (total)Complexity (average)Method Lines (total)Method Lines (average)
[p] All packages7351.727856.3
[p] org7351.727856.3
[p] org/gmetrics7351.727856.3
[c] org.gmetrics.GMetricsRunner11.01919.0
[m] execute111919
[p] org/gmetrics/analyzer00.000.0
[c] org.gmetrics.analyzer.AnalysisContextN/AN/AN/AN/A
[c] org.gmetrics.analyzer.SourceAnalyzerN/AN/AN/AN/A
[p] org/gmetrics/ant381.71607.0
[c] org.gmetrics.ant.AntFileSetSourceAnalyzer281.81217.6
[m] analyze1188
[m] getSourceDirectories1177
[m] calculatePackageLevelMetricResults1144
[m] calculatePackageLevelMetricResults1155
[m] processFileSet221313
[m] processFile442020
[m] applyMetricsToClass1188
[m] findResultsNodeForPath1133
[m] findPackageResultsNodeForPath2277
[m] findPackageResultsNodeForPath1144
[m] resultFromFirstMatchOrElseNull2277
[m] findOrAddResultsNodeForPath331212
[m] removeBaseDirectoryPrefix2277
[m] removeLeadingSlash3333
[m] afterAllSourceCodeProcessed2277
[m] <init>1166
[c] org.gmetrics.ant.GMetricsTask91.5366.0
[m] execute221515
[m] addFileset1144
[m] addConfiguredReport221010
[m] createMetricSet2233
[m] createSourceAnalyzer1133
[m] createGMetricsRunner1111
[c] org.gmetrics.ant.Report11.033.0
[m] addConfiguredOption1133
[c] org.gmetrics.ant.ReportOptionN/AN/AN/AN/A
[p] org/gmetrics/formatter41.3196.3
[c] org.gmetrics.formatter.FormatterN/AN/AN/AN/A
[c] org.gmetrics.formatter.FormatterFactory11.066.0
[m] getFormatter1166
[c] org.gmetrics.formatter.PercentageFormatter22.01010.0
[m] format221010
[c] org.gmetrics.formatter.ToStringFormatter11.033.0
[m] format1133
[p] org/gmetrics/metric3051.611186.0
[c] org.gmetrics.metric.AbstractAstVisitor61.5164.0
[m] isFirstVisit2277
[m] sourceLine1133
[m] getSourceUnit1133
[m] isSyntheticNonRunMethod2233
[c] org.gmetrics.metric.AbstractMethodMetric122.45511.0
[m] applyToMethod2277
[m] applyToClosure2277
[m] calculateForClass331616
[m] addClosureFieldsToMetricResults331414
[m] addMethodsToMetricResults221111
[c] org.gmetrics.metric.AbstractMetric81.6234.6
[m] applyToPackage2266
[m] calculateForPackage1144
[m] applyToClass2266
[m] isNotAnInterface1133
[m] createAggregateMetricResult2244
[c] org.gmetrics.metric.AstVisitorN/AN/AN/AN/A
[c] org.gmetrics.metric.MethodMetricN/AN/AN/AN/A
[c] org.gmetrics.metric.MetricN/AN/AN/AN/A
[c] org.gmetrics.metric.MetricLevel51.0183.6
[m] parse1133
[m] parseCommaSeparatedList1166
[m] getNames1133
[m] toString1133
[m] <init>1133
[c] org.gmetrics.metric.PostProcessingMetricN/AN/AN/AN/A
[p] org/gmetrics/metric/abc671.62315.5
[c] org.gmetrics.metric.abc.AbcAstVisitor331.71045.5
[m] visitMethod3366
[m] visitBinaryExpression1144
[m] visitPrefixExpression1144
[m] visitPostfixExpression1144
[m] visitMethodCallExpression1144
[m] visitPropertyExpression1155
[m] visitConstructorCallExpression1144
[m] visitIfElse2266
[m] visitSwitch2277
[m] visitTryCatchFinally1155
[m] visitTernaryExpression1144
[m] visitBooleanExpression2266
[m] visitNotExpression2266
[m] handleExpressionContainingOperation551212
[m] countUnaryConditionals441313
[m] countUnaryConditionals1144
[m] isSingleVariable1133
[m] isFinalVariableDeclaration2244
[m] isNotEmptyStatement1133
[c] org.gmetrics.metric.abc.AbcMetric51.7196.3
[m] calculate2299
[m] calculate1166
[m] createAggregateMetricResult2244
[c] org.gmetrics.metric.abc.AbcVector41.0194.8
[m] getMagnitude1155
[m] toString1133
[m] squared1133
[m] <init>1188
[p] org/gmetrics/metric/abc/result251.6895.6
[c] org.gmetrics.metric.abc.result.AbcMetricResult41.3155.0
[m] getAt2233
[m] toString1133
[m] <init>1199
[c] org.gmetrics.metric.abc.result.AggregateAbcMetricResult211.6745.7
[m] calculateFunctions551717
[m] getCount1133
[m] getTotalAbcVector1133
[m] getAbcVector1133
[m] getAverageAbcVector1166
[m] getAt1133
[m] toString1133
[m] addChildrenToAbcVector1188
[m] calculateMinimum2244
[m] calculateMaximum2244
[m] includesFunction1133
[m] average3388
[m] <init>1199
[p] org/gmetrics/metric/classcount31.5105.0
[c] org.gmetrics.metric.classcount.ClassCountMetric31.5105.0
[m] calculateForClass1155
[m] calculateForPackage2255
[p] org/gmetrics/metric/coupling611.42425.6
[c] org.gmetrics.metric.coupling.AbstractCouplingReferenceManager161.8475.2
[m] addReferencesFromPackage1166
[m] getPackageMetricResult1144
[m] isSourcePackageOrAncestor3388
[m] sortPackagesWithReferencesWithParentFirst1133
[m] updateStatisticsForAncestorPackage441212
[m] parentPackageName2233
[m] getReferencesFromPackage1144
[m] normalizePackageName2233
[m] <init>1144
[c] org.gmetrics.metric.coupling.AbstractPackageCouplingMetric21.0136.5
[m] calculateForClass111010
[m] <init>1133
[c] org.gmetrics.metric.coupling.AfferentCouplingMetric41.3165.3
[m] calculateForPackage2299
[m] afterAllSourceCodeProcessed1144
[m] getMetricResult1133
[c] org.gmetrics.metric.coupling.AfferentCouplingReferenceManager61.2336.6
[m] updateStatisticsForAllPackages1166
[m] createEmptyMetricResult1144
[m] applyReverseReferencesForPackage221313
[m] updateStatisticsForAllAncestorPackages1177
[m] <init>1133
[c] org.gmetrics.metric.coupling.EfferentCouplingMetric41.3165.3
[m] calculateForPackage2299
[m] getMetricResult1133
[m] afterAllSourceCodeProcessed1144
[c] org.gmetrics.metric.coupling.EfferentCouplingReferenceManager61.0335.5
[m] updateStatisticsForAllPackages1166
[m] createEmptyMetricResult1144
[m] applyReferencesForPackage111010
[m] updateStatisticsForAllAncestorPackages1177
[m] isSourcePackage1133
[m] <init>1133
[c] org.gmetrics.metric.coupling.PackageReferenceAstVisitor231.5845.6
[m] visitClass111010
[m] visitField1144
[m] visitConstructorCallExpression1155
[m] visitVariableExpression1155
[m] visitConstructorOrMethod1188
[m] visitClosureExpression1177
[m] visitCastExpression1155
[m] visitClassExpression1155
[m] visitPropertyExpression2277
[m] visitImports2299
[m] checkType1133
[m] checkTypeName1144
[m] checkPackageName5566
[m] isValidPackageReference3333
[m] <init>1133
[p] org/gmetrics/metric/coverage821.63466.8
[c] org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric271.91218.6
[m] applyToMethod2277
[m] applyToClosure1144
[m] calculateForClass442121
[m] calculateForPackage551616
[m] calculate1166
[m] getCoverageRatioForClass111010
[m] calculateCoverageForClassAndInnerClasses1144
[m] getOverallPackageMetricValue1144
[m] buildMethodResults331616
[m] calculateMethodResult2299
[m] logMissingMethodCoverageInformation2266
[m] findMethodElement1166
[m] containsClasses1133
[m] getCoberturaCoverageFile2299
[c] org.gmetrics.metric.coverage.CoberturaBranchCoverageMetric41.3268.7
[m] getCoverageRatioForSingleClass221010
[m] findLineElementsWithBranches1133
[m] getBranchCoverageRatio111313
[c] org.gmetrics.metric.coverage.CoberturaCoverageFile141.3666.0
[m] getOverallCoverageRate1144
[m] parseCoverageRate1155
[m] findPackageElement1144
[m] findClassElement1144
[m] findInnerClasses1144
[m] hasInnerClasses1133
[m] findMethodElement221111
[m] findAllMethodElements2277
[m] getCoberturaXml221212
[m] createNonValidatingXmlSlurper1188
[m] <init>1144
[c] org.gmetrics.metric.coverage.CoberturaLineCoverageMetric31.5157.5
[m] getCoverageRatioForSingleClass221010
[m] getLinesCoverageRatio1155
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser202.0757.5
[m] matchesCoberturaMethod2288
[m] numberOfParameters1133
[m] parseSignatureParameterTypes331616
[m] extractParameters1155
[m] parseCoberturaSignatureParameterTypes2277
[m] parseParameterTypes221212
[m] processStandaloneCharacter441111
[m] processCharacterWithinFullyQualifiedTypeName2288
[m] classNameNoPackage2244
[m] <init>1111
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser$ParseContext81.3233.8
[m] startFullyQualifiedTypeName1133
[m] withinFullyQualifiedTypeName1133
[m] appendToFullyQualifiedTypeName1133
[m] terminateFullyQualifiedTypeName2266
[m] startNewArrayType1133
[m] processPrimitiveTypeCode2255
[c] org.gmetrics.metric.coverage.Ratio61.2204.0
[m] plus1144
[m] toBigDecimal2244
[m] asType1144
[m] toString1144
[m] <init>1144
[p] org/gmetrics/metric/crap103.33612.0
[c] org.gmetrics.metric.crap.CrapMetric103.33612.0
[m] calculate1144
[m] calculate662424
[m] calculateCrapScore3388
[p] org/gmetrics/metric/cyclomatic201.5634.8
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityAstVisitor161.5514.6
[m] visitMethod3388
[m] visitIfElse1144
[m] visitWhileLoop1144
[m] visitForLoop1144
[m] visitSwitch1144
[m] visitCatchStatement1144
[m] visitBinaryExpression1144
[m] visitTernaryExpression1144
[m] visitMethodCallExpression2255
[m] visitPropertyExpression2244
[m] handleExpressionContainingOperation2266
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityMetric42.0126.0
[m] calculate2266
[m] calculate2266
[p] org/gmetrics/metric/fieldcount82.7196.3
[c] org.gmetrics.metric.fieldcount.FieldCountAstVisitor63.0105.0
[m] getNumberOfFields1133
[m] visitClass5577
[c] org.gmetrics.metric.fieldcount.FieldCountMetric22.099.0
[m] calculateForClass2299
[p] org/gmetrics/metric/linecount122.0386.3
[c] org.gmetrics.metric.linecount.ClassLineCountMetric22.099.0
[m] calculateForClass2299
[c] org.gmetrics.metric.linecount.ClassLineCountAstVisitor22.066.0
[m] visitClass2266
[c] org.gmetrics.metric.linecount.MethodLineCountAstVisitor52.5126.0
[m] visitMethod3366
[m] visitClosureExpression2266
[c] org.gmetrics.metric.linecount.MethodLineCountMetric31.5115.5
[m] calculate2266
[m] calculate1155
[p] org/gmetrics/metric/methodcount113.7217.0
[c] org.gmetrics.metric.methodcount.MethodCountAstVisitor94.5126.0
[m] getNumberOfMethods1133
[m] visitClass8899
[c] org.gmetrics.metric.methodcount.MethodCountMetric22.099.0
[m] calculateForClass2299
[p] org/gmetrics/metricregistry31.0165.3
[c] org.gmetrics.metricregistry.DefaultMetricRegistry31.0165.3
[m] getMetricClass1144
[m] getAllMetricNames1144
[m] buildMetricClassMap1188
[c] org.gmetrics.metricregistry.MetricRegistryN/AN/AN/AN/A
[c] org.gmetrics.metricregistry.MetricRegistryHolderN/AN/AN/AN/A
[p] org/gmetrics/metricset301.21435.7
[c] org.gmetrics.metricset.CompositeMetricSet31.0113.7
[m] addMetric1144
[m] addMetricSet1144
[m] getMetrics1133
[c] org.gmetrics.metricset.DefaultMetricSet11.033.0
[m] getMetrics1133
[c] org.gmetrics.metricset.GroovyDslMetricSet21.02110.5
[m] getMetrics1133
[m] <init>111818
[c] org.gmetrics.metricset.ListMetricSet21.0105.0
[m] getMetrics1133
[m] <init>1177
[c] org.gmetrics.metricset.MetricSetN/AN/AN/AN/A
[c] org.gmetrics.metricset.MetricSetBuilder21.073.5
[m] metricset1144
[m] getMetricSet1133
[c] org.gmetrics.metricset.TopLevelDelegate161.3705.8
[m] metricset1144
[m] metricset111010
[m] metric1155
[m] metric1166
[m] metric111010
[m] propertyMissing2255
[m] methodMissing331010
[m] description1144
[m] getMetricSet1133
[m] assertClassImplementsMetricInterface1144
[m] addMetric2266
[m] isNotWithinAnotherMetricDefinition1133
[c] org.gmetrics.metricset.MetricSetDelegate41.3217.0
[m] methodMissing221515
[m] findMetric1133
[m] <init>1133
[p] org/gmetrics/report1381.76587.9
[c] org.gmetrics.report.AbstractMetricCriteriaFilterN/AN/AN/AN/A
[c] org.gmetrics.report.AbstractReportWriter201.7766.3
[m] writeReport221414
[m] writeReportToStandardOut1144
[m] writeReportToFile2288
[m] initializeDefaultResourceBundle221212
[m] getResourceBundleString2299
[m] getResourceBundleStringOrNull2299
[m] initializeFormatters2277
[m] formatMetricResultValue2244
[m] getFormattedTimestamp1144
[m] isWriteToStandardOut2233
[m] initializeResourceBundle1111
[m] getTimestamp1111
[c] org.gmetrics.report.BasicHtmlReportWriter321.917710.4
[m] writeReport111717
[m] buildMetricResultColumns221111
[m] buildCSS1188
[m] buildHeaderSection1188
[m] buildBodySection111111
[m] buildReportTimestamp1166
[m] buildResultsTable221717
[m] getMetricResultColumnHeading1144
[m] setReportLevels1133
[m] includesReportLevel2233
[m] buildResultsTableRowRecursively10103333
[m] buildResultsRowsForChildren2299
[m] prefixForResultsNodeLevel1188
[m] buildMetricDescriptions222424
[m] getDescriptionForMetricName1144
[m] buildVersionFooter1188
[m] buildTitle2233
[c] org.gmetrics.report.FunctionsCriteriaFilter21.063.0
[m] setFunctions1133
[m] includesFunction1133
[c] org.gmetrics.report.LevelsCriteriaFilter21.063.0
[m] setLevels1133
[m] includesLevel1133
[c] org.gmetrics.report.MetricCriteriaFilterHelper61.5235.8
[m] includesName3377
[m] parseCriteria1177
[m] parseCriteriaForSingleMetric1166
[m] parseCommaSeparatedList1133
[c] org.gmetrics.report.MetricsCriteriaFilter31.563.0
[m] setMetrics1133
[m] includesMetric2233
[c] org.gmetrics.report.ReportWriterN/AN/AN/AN/A
[c] org.gmetrics.report.SeriesValue21.073.5
[m] toString1133
[m] <init>1144
[c] org.gmetrics.report.SingleSeriesCriteriaFilter331.91317.7
[m] buildSeriesData112020
[m] findMatchingValuesForChildren1166
[m] getResultsNodeFullName331414
[m] findMatchingValues441515
[m] sortValuesIfApplicable3399
[m] limitToGreaterThanIfApplicable2277
[m] limitToLessThanIfApplicable2277
[m] limitToMaxResultsIfApplicable3399
[m] assertMetricExists1144
[m] assertLevelExists1133
[m] assertFunctionExists1144
[m] assertValidSortValue2233
[m] assertValidMaxResultsValue331111
[m] assertValidGreaterThanValue1133
[m] assertValidLessThanValue1133
[m] assertValidNumberValue331010
[m] findMetric1133
[c] org.gmetrics.report.SingleSeriesHtmlReportWriter111.1969.6
[m] writeReport111818
[m] buildHeaderSection1188
[m] buildCSS1188
[m] buildBodySection221313
[m] buildReportTimestamp1166
[m] buildResultsTable111313
[m] getSeriesValueNameHeading1199
[m] buildSeriesValueRow1199
[m] getMetricResultColumnHeading1144
[m] buildVersionFooter1188
[c] org.gmetrics.report.XmlReportWriter271.81308.7
[m] writeReport111717
[m] buildReportElement1155
[m] buildProjectElement1199
[m] buildPackageElements1133
[m] buildElement4477
[m] buildPackageElement552020
[m] buildClassElement111111
[m] buildMethodElement111010
[m] buildMetricElements1177
[m] buildMetricElement661414
[m] isRoot1133
[m] buildMetricsElement111414
[m] getDescriptionForMetric1144
[m] isPackage1133
[m] cdata1133
[p] org/gmetrics/result491.51614.9
[c] org.gmetrics.result.ClassMetricResult21.073.5
[m] toString1133
[m] <init>1144
[c] org.gmetrics.result.FunctionNamesN/AN/AN/AN/A
[c] org.gmetrics.result.MapMetricResult31.0175.7
[m] getAt1144
[m] toString1144
[m] <init>1199
[c] org.gmetrics.result.MethodKey61.2234.6
[m] equals2244
[m] hashCode1144
[m] toString1144
[m] <init>1155
[m] <init>1166
[c] org.gmetrics.result.MetricResultN/AN/AN/AN/A
[c] org.gmetrics.result.MetricResultBuilder282.2614.7
[m] createAggregateMetricResult111313
[m] toString1133
[m] calculateFunctions111010
[m] calculateCount1133
[m] total3333
[m] calculateTotal2255
[m] minimum3333
[m] calculateMinimum2244
[m] maximum3333
[m] calculateMaximum2244
[m] average3333
[m] shouldCalculateFunction3333
[m] isFunctionSpecifiedOrImplied3344
[c] org.gmetrics.result.MutableMapMetricResult41.0205.0
[m] getAt1144
[m] putAt1144
[m] toString1144
[m] <init>1188
[c] org.gmetrics.result.NumberMetricResult31.0165.3
[m] getAt1133
[m] toString1133
[m] <init>111010
[c] org.gmetrics.result.SingleNumberMetricResult31.0175.7
[m] getAt1144
[m] toString1144
[m] <init>1199
[p] org/gmetrics/resultsnode271.21024.6
[c] org.gmetrics.resultsnode.ClassResultsNode91.3344.9
[m] containsClassResults1133
[m] getMetricResult1144
[m] addClassMetricResult221010
[m] toString1133
[m] addMethodMetricResult2266
[m] <init>1133
[m] <init>1155
[c] org.gmetrics.resultsnode.MethodResultsNode71.0243.4
[m] containsClassResults1133
[m] getMetricResult1144
[m] addMetricResult1144
[m] getChildren1133
[m] toString1133
[m] <init>1133
[m] <init>1144
[c] org.gmetrics.resultsnode.PackageResultsNode111.4445.5
[m] getChildren1133
[m] containsClassResults1133
[m] getMetricResult1144
[m] addChildIfNotEmpty2277
[m] addChild1155
[m] applyMetric331414
[m] toString1133
[m] <init>1155
[c] org.gmetrics.resultsnode.ResultsNodeN/AN/AN/AN/A
[p] org/gmetrics/source372.11116.2
[c] org.gmetrics.source.AbstractSourceCode162.7518.5
[m] getLines2266
[m] line3355
[m] getAst331616
[m] getLineNumberForCharacterIndex551616
[m] isValid1133
[m] normalizePath2255
[c] org.gmetrics.source.SourceCodeN/AN/AN/AN/A
[c] org.gmetrics.source.SourceCodeCriteria88.01717.0
[m] matches881717
[c] org.gmetrics.source.SourceFile71.2254.2
[m] getName1133
[m] getPath1133
[m] getText2266
[m] toString1133
[m] createSourceUnit1155
[m] <init>1155
[c] org.gmetrics.source.SourceString61.2183.6
[m] getText1133
[m] setPath2233
[m] toString1133
[m] createSourceUnit1133
[m] <init>1166
[p] org/gmetrics/util1032.42786.5
[c] org.gmetrics.util.AstUtil382.5946.3
[m] isEmptyMethod1133
[m] isClosureField2233
[m] isBlock1133
[m] isEmptyBlock4455
[m] getMethodArguments331010
[m] isMethodCall331010
[m] isMethodCall2244
[m] isMethodCall3399
[m] isMethodNamed1144
[m] getAnnotation2266
[m] getVariableExpressions991616
[m] isFinalVariable441414
[m] isFromGeneratedSourceCode1133
[m] respondsTo1133
[m] <init>1111
[c] org.gmetrics.util.Calculator42.084.0
[m] calculateAverage3377
[m] <init>1111
[c] org.gmetrics.util.ClassNameUtil142.3264.3
[m] parentPackageName3377
[m] isPackageName2244
[m] isClassName2244
[m] getNameOnly4477
[m] isCapitalized2233
[m] <init>1111
[c] org.gmetrics.util.GMetricsVersion11.033.0
[m] getVersion1133
[c] org.gmetrics.util.ImportUtil44.01111.0
[m] packageNameForImport441111
[c] org.gmetrics.util.PathUtil132.6336.6
[m] getName3377
[m] getParent3399
[m] normalize2233
[m] toPackageName441313
[m] <init>1111
[c] org.gmetrics.util.PropertyUtil63.02311.5
[m] setPropertyFromString552222
[m] <init>1111
[c] org.gmetrics.util.WildcardPattern133.34611.5
[m] matches4477
[m] containsWildcards1133
[m] convertStringWithWildcardsToRegex552424
[m] <init>331212
[p] org/gmetrics/util/io101.4344.9
[c] org.gmetrics.util.io.ClassPathResource41.3144.7
[m] getInputStream1133
[m] getInputStream2277
[m] <init>1144
[c] org.gmetrics.util.io.DefaultResourceFactory42.0126.0
[m] getResource3399
[m] isUrl1133
[c] org.gmetrics.util.io.ResourceN/AN/AN/AN/A
[c] org.gmetrics.util.io.ResourceFactoryN/AN/AN/AN/A
[c] org.gmetrics.util.io.UrlResource21.084.0
[m] getInputStream1144
[m] <init>1144

Metric Descriptions

#Metric NameDescription
1CyclomaticComplexityMeasures the (McCabe) Cyclomatic Complexity of source code. See the Wikipedia entry for Cyclomatic Complexity.
2MethodLineCountCounts the number of lines in each method.

GMetrics 0.6