Linux / Drivers / Atm
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 577 units with 17,598 lines of code in units (57.1% of code).
    • 2 very complex units (720 lines of code)
    • 12 complex units (2,042 lines of code)
    • 76 medium complex units (5,805 lines of code)
    • 91 simple units (3,775 lines of code)
    • 396 very simple units (5,256 lines of code)
4% | 11% | 32% | 21% | 29%
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
c4% | 11% | 32% | 21% | 29%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT4% | 11% | 32% | 21% | 29%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
400 57 2
320 55 1
315 49 2
267 47 1
184 43 3
136 40 1
186 39 1
85 39 4
122 31 3
207 30 1
151 30 1
168 30 1
90 27 3
131 26 2
109 24 1
139 24 5
74 23 5
113 23 3
133 22 2
31 22 3
117 21 2
97 21 2
131 21 2
35 21 3
94 20 2
76 20 1
98 19 2
138 19 1
73 19 3
127 19 1
65 18 1
69 18 2
123 18 2
28 18 3
88 18 1
69 16 4
107 16 2
70 16 1
34 16 3
68 16 4
234 16 1
168 15 1
45 15 2
62 15 1
99 15 2
96 15 5
100 14 6
61 14 3
57 14 3
68 14 1