Linux / Drivers / Slimbus
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 111 units with 2,216 lines of code in units (70.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (111 lines of code)
    • 5 medium complex units (317 lines of code)
    • 15 simple units (574 lines of code)
    • 90 very simple units (1,214 lines of code)
0% | 5% | 14% | 25% | 54%
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% | 14% | 26% | 54%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 5% | 14% | 25% | 54%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
111 26 2
49 18 2
29 15 3
70 15 3
119 15 1
50 12 2
18 9 2
72 9 1
43 9 1
60 9 1
31 8 3
44 8 2
40 7 2
30 7 1
36 6 1
43 6 2
44 6 1
29 6 2
24 6 2
14 6 1
46 6 2
23 5 4
33 5 2
13 5 2
18 5 1
8 5 2
8 5 2
29 5 1
13 4 2
8 4 2
22 4 1
7 4 2
24 4 3
29 4 2
30 4 1
34 4 3
12 4 1
36 4 2
32 4 1
11 4 2
14 4 1
16 4 1
17 3 1
10 3 1
12 3 1
24 3 1
29 3 1
13 3 1
18 3 2
13 3 1