Linux / Drivers / Mmc
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 3,129 units with 66,888 lines of code in units (76.9% of code).
    • 3 very complex units (844 lines of code)
    • 39 complex units (5,097 lines of code)
    • 272 medium complex units (16,389 lines of code)
    • 508 simple units (16,594 lines of code)
    • 2,307 very simple units (27,964 lines of code)
1% | 7% | 24% | 24% | 41%
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
c1% | 7% | 24% | 24% | 41%
h0% | 0% | 7% | 0% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
host1% | 7% | 24% | 24% | 41%
core1% | 8% | 22% | 25% | 42%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
357 107 1
205 65 3
282 55 1
125 50 1
152 48 3
124 44 3
168 43 4
108 41 2
132 40 1
231 38 2
172 38 2
188 38 1
241 37 2
131 36 3
83 34 1
155 33 2
159 32 1
149 32 2
133 32 2
164 32 1
93 32 2
114 31 2
122 31 1
150 30 1
120 30 1
133 30 2
141 30 1
66 29 2
156 29 1
107 29 2
79 29 2
113 28 1
99 28 2
136 27 1
83 27 2
151 27 1
104 27 2
131 27 1
50 26 2
90 26 2
144 26 1
100 26 2
84 25 2
111 25 1
126 25 2
34 25 1
88 24 3
50 24 2
72 24 2
124 24 1