Max Child Depth 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.
Max Child Depth
API ID: ArchMaxChildDepthLanguages: Any
Targets: Architectures
The maximum depth of the tree starting from this architecture
Consider the following sample architecture:
- Arch Root
- Arch Child
- Arch GrandChild
- file1.cpp
- file2.cpp
- MyClass
- myFunction
- Arch Child 2
Then the metric values would be:
| Architecture | Value |
|---|---|
| Arch Root | 2 |
| Arch Child | 1 |
| Arch GrandChild | 0 |
| Arch Child 2 | 0 |