Percent of Root Code Lines is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Percent of Root Code Lines
API ID: PercentOfRootCodeLinesLanguages: Any
Targets: Architectures
Percentage of the root architecture's code lines (CountLineCode) that belong to this architecture.
The root is the top-level architecture (no parent). Both values use CountLineCode, so the denominator is the same for every node and you can compare any two nodes. The root itself returns 100. Returns null if the root has no code lines.