Linux / Drivers / Opp
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 133 units with 2,362 lines of code in units (70.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (283 lines of code)
    • 28 simple units (961 lines of code)
    • 101 very simple units (1,118 lines of code)
0% | 0% | 11% | 40% | 47%
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% | 12% | 40% | 46%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 11% | 40% | 47%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
109 23 3
63 18 4
61 13 1
50 12 2
45 10 1
40 10 5
34 10 4
39 10 3
75 10 2
11 9 2
33 8 2
33 8 3
39 8 3
34 8 4
35 7 2
27 7 1
36 7 2
27 7 2
25 7 4
45 7 2
38 7 2
35 7 2
38 7 5
24 6 3
27 6 1
42 6 3
22 6 1
26 6 3
39 6 1
42 6 2
21 6 3
29 6 1
30 5 2
12 5 2
16 5 2
23 5 4
41 5 5
17 5 1
30 5 3
18 5 3
25 4 2
12 4 1
14 4 4
25 4 2
20 4 2
27 4 4
28 4 5
14 4 1
16 4 1
15 4 2