Linux / Drivers / Hv
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 340 units with 6,187 lines of code in units (73.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 17 medium complex units (1,156 lines of code)
    • 42 simple units (1,693 lines of code)
    • 281 very simple units (3,338 lines of code)
0% | 0% | 18% | 27% | 53%
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% | 18% | 27% | 53%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 18% | 27% | 53%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
134 21 1
82 19 9
77 17 1
66 15 2
104 15 4
60 14 1
43 14 1
55 14 1
48 13 7
75 13 1
67 13 4
66 12 1
52 11 1
71 11 1
46 11 2
40 11 3
70 11 1
57 10 1
41 10 3
100 10 5
50 10 1
60 10 4
61 10 1
16 9 3
53 9 1
87 9 6
43 9 4
54 9 1
33 9 1
32 8 1
29 8 3
62 8 1
36 8 4
41 8 1
30 8 2
29 8 2
41 7 1
23 7 2
36 7 2
35 7 4
44 7 1
49 7 3
21 6 1
27 6 1
33 6 1
32 6 2
42 6 2
27 6 1
34 6 1
31 6 4