Linux / Arch / Xtensa
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 453 units with 5,782 lines of code in units (29.2% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (257 lines of code)
    • 11 medium complex units (457 lines of code)
    • 34 simple units (1,211 lines of code)
    • 406 very simple units (3,857 lines of code)
0% | 4% | 7% | 20% | 66%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
c0% | 5% | 9% | 24% | 60%
h0% | 0% | 0% | 7% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
mm0% | 18% | 5% | 24% | 51%
kernel0% | 4% | 9% | 27% | 58%
lib0% | 0% | 100% | 0% | 0%
boot0% | 0% | 90% | 0% | 9%
platforms0% | 0% | 3% | 15% | 81%
include0% | 0% | 0% | 8% | 91%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
123 45 5
134 40 1
47 23 3
52 16 1
39 14 3
42 14 1
38 13 4
41 13 3
32 12 1
60 12 2
50 12 3
28 12 3
28 12 5
37 10 3
31 10 1
85 9 1
65 9 5
38 9 4
57 9 3
25 8 1
31 8 1
28 8 3
43 7 1
29 7 5
21 7 4
28 7 1
18 7 1
43 7 6
22 7 1
22 7 1
33 7 2
30 6 2
37 6 3
29 6 2
27 6 1
32 6 3
14 6 2
19 6 1
34 6 3
19 6 3
40 6 1
22 6 1
77 6 1
95 6 1
25 6 1
30 6 2
25 6 2
53 5 2
27 5 2
24 5 1