Linux / Drivers / Vme
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 153 units with 4,846 lines of code in units (70.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (193 lines of code)
    • 24 medium complex units (2,149 lines of code)
    • 21 simple units (696 lines of code)
    • 107 very simple units (1,808 lines of code)
0% | 3% | 44% | 14% | 37%
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% | 3% | 44% | 14% | 37%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
bridges0% | 4% | 51% | 14% | 28%
ROOT0% | 0% | 8% | 13% | 77%
boards0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
193 31 7
87 24 7
121 24 7
81 23 5
81 23 5
113 23 4
238 22 2
31 22 1
113 21 7
81 20 7
200 20 2
78 18 7
66 17 7
78 17 4
78 17 4
69 15 7
37 15 3
118 14 4
44 13 7
52 12 7
66 12 4
69 12 4
144 11 1
51 11 4
53 11 4
32 10 4
34 9 2
60 9 2
33 9 2
44 9 4
44 9 4
29 9 4
29 8 4
62 8 2
33 7 4
28 7 7
25 7 3
25 6 4
25 6 4
25 6 4
23 6 5
23 6 5
23 6 5
46 6 2
26 6 1
27 6 7
24 5 4
24 5 4
24 5 4
22 5 1