Linux / Drivers / Bus
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 702 units with 13,620 lines of code in units (68.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 40 medium complex units (2,836 lines of code)
    • 107 simple units (4,128 lines of code)
    • 555 very simple units (6,656 lines of code)
0% | 0% | 20% | 30% | 48%
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% | 20% | 30% | 48%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
mhi0% | 0% | 30% | 30% | 39%
ROOT0% | 0% | 16% | 32% | 51%
fsl-mc0% | 0% | 17% | 24% | 57%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
115 25 2
140 24 3
97 24 1
77 22 1
99 21 3
91 21 1
80 21 1
59 21 1
95 20 4
68 20 3
51 18 1
92 17 1
71 16 2
67 16 1
72 16 3
86 16 1
54 16 1
66 16 1
130 15 1
42 15 1
57 15 1
79 15 2
79 14 1
82 14 4
54 14 1
46 13 5
47 13 1
106 13 1
51 13 2
48 13 7
41 13 1
48 13 4
64 12 3
62 12 1
51 11 2
50 11 2
53 11 3
46 11 2
62 11 2
58 11 4
50 10 2
64 10 2
54 10 1
65 10 1
51 10 1
55 10 1
58 10 1
32 10 2
63 10 3
51 10 1