Metrics‎ > ‎

Lines of Code

Definition

Metric used to measure the size of a software program by counting the number of lines in the text of the program's source code. LOC is one of the most debated metrics in software development and the same time mostly misunderstood. 

Calculation

To calculate the metric you need to have access to source code and calculate number of lines of code in each file that is part of your product. The Lines of Code of whole product is a sum of lines of code of all the components.

Dimensions

Following dimensions are aplicable to Lines of Code metrics:
  • Project/Product. 
  • Component

Presentation

To see the trend of product size growth trend line chart can be used. If you are looking to do drill-down analysis to understand the sizes of product components try pie-chart showing components as sections.

Usage