Subprograms 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.
Subprograms
API ID: CountDeclSubprogramLanguages: Ada, Basic, Fortran, Jovial, Pascal
Targets: Architectures, Files, Functions, Modules, Packages, Project, Subprograms
Number of subprograms.
Targets By Language:- Ada: Project, File, Package
- Basic: Project, File
- Fortran: Project, File, Module, Block Data, Function, Program, Subroutine
- Jovial: Project, File, Module, Subroutine
- Pascal: Project, File, Compunit, Function, Procedure
- For projects and architectures, this metric is enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show aggregated file metrics" option.
- For projects and architectures, this metric is enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show default summary metrics" option.