Linux / Drivers / Most
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 168 units with 2,502 lines of code in units (72.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (477 lines of code)
    • 20 simple units (555 lines of code)
    • 139 very simple units (1,470 lines of code)
0% | 0% | 19% | 22% | 58%
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% | 0% | 19% | 22% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 19% | 22% | 58%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
85 14 1
67 13 3
52 13 3
32 13 1
88 12 5
46 12 3
45 11 1
22 11 1
40 11 4
27 10 3
52 10 3
58 9 5
36 8 1
17 8 3
28 8 2
28 7 4
24 7 1
32 7 1
16 7 2
30 6 2
32 6 1
20 6 3
12 6 3
24 6 1
19 6 3
18 6 3
18 6 1
42 6 3
22 6 1
27 5 1
19 5 3
20 5 3
11 5 3
11 5 1
30 5 2
25 5 1
34 5 4
25 5 1
18 5 3
14 5 3
16 5 3
16 5 2
27 5 1
25 4 2
20 4 3
15 4 1
17 4 1
17 4 3
14 4 1
18 4 3