Linux / Drivers / Ssb
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 350 units with 6,316 lines of code in units (85.6% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (241 lines of code)
    • 16 medium complex units (998 lines of code)
    • 56 simple units (1,731 lines of code)
    • 276 very simple units (3,346 lines of code)
0% | 3% | 15% | 27% | 52%
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% | 16% | 27% | 52%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 3% | 15% | 27% | 52%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
155 33 2
86 32 3
113 19 2
68 19 3
82 19 1
54 18 1
80 17 1
61 15 2
57 14 2
65 13 1
76 13 2
80 13 3
56 11 2
24 11 1
71 11 2
37 11 1
41 11 2
33 11 1
43 10 2
37 10 4
32 10 1
74 10 2
27 10 1
49 10 2
41 10 7
44 10 7
43 9 4
47 9 3
45 9 2
27 8 1
20 8 1
29 8 2
51 8 5
49 8 5
14 8 2
44 8 1
21 8 1
38 7 1
20 7 2
20 7 2
41 7 5
41 7 5
28 7 2
30 7 5
27 7 5
14 7 1
26 7 5
26 7 5
24 7 4
14 7 2