Linux / Drivers / Of
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 369 units with 7,444 lines of code in units (72.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (134 lines of code)
    • 24 medium complex units (1,753 lines of code)
    • 66 simple units (2,202 lines of code)
    • 278 very simple units (3,355 lines of code)
0% | 1% | 23% | 29% | 45%
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% | 1% | 23% | 29% | 44%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 1% | 23% | 29% | 45%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
134 34 2
103 24 5
63 21 6
65 21 2
67 19 4
80 19 1
62 18 4
43 17 4
72 16 6
45 16 1
164 16 1
116 15 1
73 15 4
49 14 3
77 14 1
69 13 1
70 13 1
83 13 3
36 12 1
30 12 4
56 12 1
78 12 1
70 12 3
116 11 1
66 11 1
67 10 1
53 10 3
23 10 5
48 10 5
65 10 1
40 10 2
43 10 3
31 10 2
51 10 1
54 10 2
36 10 3
37 9 1
39 9 2
37 9 1
24 9 4
34 9 3
42 9 5
42 9 1
31 9 2
38 9 8
64 9 2
34 9 1
24 8 1
20 8 1
58 8 2