Code Metrics
Measure What Matters
CppDepend computes more than 80 code metrics on every level of your codebase — application, projects, namespaces, types, methods and fields. Metrics are the objective foundation for every quality decision: they feed the dashboards, the trend charts, the quality gates and the technical-debt estimation.

Metrics on Application (8 metrics)
NbLinesOfCode, NbLinesOfComment, PercentageComment, NbProjects, NbNamespaces, NbTypes, NbMethods, NbFields
Metrics on Types (16 metrics)
NbLinesOfCode, NbLinesOfComment, PercentageComment, NbMethods, NbFields, Type level, Type rank, Afferent coupling at type level (TypeCa), Efferent coupling at type level (TypeCe), Lack of Cohesion Of Methods (LCOM), LCOM HS, Code Source Cyclomatic Complexity, Size of instance, Association Between Class (ABC), Number of Children (NOC), Depth of Inheritance Tree (DIT)
Metrics on Methods (11 metrics)
NbLinesOfCode, NbLinesOfComment, PercentageComment, Method level, Method rank, Afferent coupling at method level (MethodCa), Efferent coupling at method level (MethodCe), Code Source Cyclomatic Complexity, NbParameters, NbVariables, NbOverloads
Trends and Baselines
Every metric is tracked across builds and compared against your baseline. A glance at the dashboard tells you whether complexity, coverage or coupling is improving or degrading — long before the problem becomes expensive.

Try Code Metrics with CppDepend
Start your 14-day free trial with full access to all features. No credit card required.
