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.
Depth
API ID: ArchCurDepthLanguages: Any
Targets: Architectures
The depth of this architecture in it's tree
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 | 0 |
| Arch Child | 1 |
| Arch GrandChild | 2 |
| Arch Child 2 | 1 |