Linux / Arch / Microblaze
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 247 units with 3,443 lines of code in units (32.4% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (302 lines of code)
    • 7 medium complex units (418 lines of code)
    • 17 simple units (616 lines of code)
    • 220 very simple units (2,107 lines of code)
0% | 8% | 12% | 17% | 61%
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% | 10% | 13% | 19% | 56%
h0% | 0% | 0% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
kernel0% | 10% | 13% | 15% | 60%
mm0% | 30% | 0% | 12% | 56%
pci0% | 0% | 23% | 38% | 38%
include0% | 0% | 0% | 3% | 96%
lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
110 35 3
101 33 2
91 27 2
88 25 3
47 18 1
67 18 6
71 18 4
45 13 4
39 11 1
61 11 1
36 9 4
30 9 4
30 9 4
31 9 2
50 9 1
43 8 3
39 8 1
34 8 3
53 8 5
59 8 6
21 7 3
22 7 1
15 7 2
19 6 1
46 6 1
68 6 2
20 6 5
32 5 1
24 5 2
47 5 2
17 5 1
18 5 2
14 5 2
35 5 2
27 5 1
21 5 1
49 5 3
32 4 1
17 4 2
14 4 1
23 4 3
11 4 1
36 4 5
15 4 3
18 4 2
8 4 2
17 3 1
19 3 1
19 3 1
8 3 2