Linux / Drivers / Remoteproc
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 567 units with 12,071 lines of code in units (70.1% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (269 lines of code)
    • 34 medium complex units (2,580 lines of code)
    • 83 simple units (3,365 lines of code)
    • 448 very simple units (5,857 lines of code)
0% | 2% | 21% | 27% | 48%
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% | 2% | 21% | 28% | 47%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 2% | 21% | 27% | 48%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
154 31 1
115 29 2
137 24 1
103 22 1
138 21 1
78 21 1
90 21 1
109 19 1
90 19 1
87 17 6
152 16 1
80 16 2
96 16 1
96 16 1
78 14 1
89 14 1
74 14 4
74 14 1
30 13 4
57 13 2
91 13 1
58 12 1
40 12 1
63 12 3
98 12 1
55 12 1
59 12 1
67 12 1
28 11 4
64 11 2
42 11 1
54 11 2
43 11 2
34 11 3
70 11 1
56 11 1
70 10 1
49 10 1
57 10 1
65 10 1
42 10 3
56 10 2
54 10 1
61 10 1
70 10 1
72 10 1
47 10 5
50 10 2
32 9 4
57 9 1