Line and Statement Counting Metrics

Understand has many different metrics, including a large number that focus on counting the number of statements and lines of code, including Lines of Code (LOC or SLOC), Lines with Comments (CLOC), empty lines (BLOC), Number of Statements, Number of Executable Statements, etc.

The short C/C++ example below shows how each line and statement contribute to these metrics in Understand. You can view the larger version here.


Tags: , , , ,

2 Responses to “Line and Statement Counting Metrics”

  1. Athira Says:

    how can i get pre-rocessor line of code from understand tool metrics?

  2. KevinG Says:

    You can get the metrics via Metrics->Export Metrics, then select CountLinePreproccesor and export the metrics.