Linux / Arch / Arm64
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 3,416 units with 44,237 lines of code in units (50.1% of code).
    • 1 very complex units (446 lines of code)
    • 10 complex units (983 lines of code)
    • 94 medium complex units (4,495 lines of code)
    • 319 simple units (9,147 lines of code)
    • 2,992 very simple units (29,166 lines of code)
1% | 2% | 10% | 20% | 65%
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
c1% | 2% | 11% | 21% | 63%
h0% | 0% | 3% | 11% | 85%
pl0% | 0% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
net62% | 0% | 0% | 10% | 27%
kvm0% | 2% | 13% | 22% | 61%
kernel0% | 3% | 9% | 19% | 67%
mm0% | 2% | 5% | 21% | 70%
lib0% | 0% | 17% | 34% | 47%
crypto0% | 0% | 7% | 21% | 71%
include0% | 0% | 2% | 9% | 87%
hyperv0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
446 175 3
192 48 5
139 47 5
121 40 1
88 40 2
51 37 1
110 33 2
104 29 3
49 28 1
90 27 3
39 27 1
32 25 2
32 25 2
76 24 1
73 24 1
69 22 1
64 22 2
53 20 3
60 20 2
61 19 1
65 19 3
49 18 3
51 18 1
83 17 3
90 17 4
42 17 1
74 17 1
38 17 1
53 17 2
100 17 1
42 17 1
58 16 1
37 16 3
69 16 1
40 16 1
47 15 4
63 15 2
38 15 5
68 15 4
32 15 2
61 15 3
18 14 1
51 14 3
35 14 2
35 14 4
47 14 1
32 14 2
55 14 4
45 14 3
50 14 3