Linux / Drivers / Auxdisplay
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 191 units with 3,116 lines of code in units (70.7% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (297 lines of code)
    • 8 medium complex units (475 lines of code)
    • 22 simple units (773 lines of code)
    • 159 very simple units (1,571 lines of code)
0% | 9% | 15% | 24% | 50%
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% | 9% | 15% | 24% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 9% | 15% | 24% | 50%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
140 44 1
157 40 1
83 21 1
63 21 2
96 18 1
42 13 1
43 13 1
52 13 1
51 13 1
45 12 1
46 10 3
37 10 1
14 9 1
43 9 5
40 9 1
55 9 2
67 9 3
36 8 2
44 8 2
31 8 1
30 8 1
28 8 3
30 7 2
27 7 1
48 7 1
37 7 3
20 6 4
26 6 1
29 6 1
24 6 1
31 6 1
30 6 3
10 5 2
13 5 2
14 5 3
39 5 1
11 5 2
20 5 1
16 5 1
27 5 3
16 5 4
29 4 1
12 4 3
11 4 1
10 4 1
15 4 2
15 4 1
9 4 1
18 4 1
10 4 1