Linux / Drivers / Rapidio
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 279 units with 6,608 lines of code in units (64.1% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (357 lines of code)
    • 15 medium complex units (1,241 lines of code)
    • 48 simple units (1,892 lines of code)
    • 213 very simple units (3,118 lines of code)
0% | 5% | 18% | 28% | 47%
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% | 5% | 18% | 28% | 47%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
devices0% | 5% | 30% | 24% | 39%
ROOT0% | 4% | 3% | 36% | 54%
switches0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
149 29 2
70 28 3
138 27 5
104 23 5
109 21 2
76 20 2
85 16 2
134 15 4
139 15 4
119 15 2
94 14 1
92 13 1
65 12 8
43 12 2
60 11 6
38 11 3
42 11 3
41 11 2
61 10 3
47 10 3
57 10 4
54 10 2
81 10 4
37 10 2
60 10 2
35 9 2
48 9 1
39 9 2
48 9 2
34 8 3
42 8 1
38 8 1
26 8 1
45 8 2
29 8 1
61 8 1
26 8 4
104 8 2
10 7 2
28 7 5
28 7 5
25 7 3
22 7 2
28 7 1
23 7 1
31 7 1
47 7 1
47 7 2
26 7 2
28 7 2