Linux / Arch / Um
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 1,103 units with 16,840 lines of code in units (69.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (96 lines of code)
    • 30 medium complex units (1,936 lines of code)
    • 151 simple units (5,128 lines of code)
    • 921 very simple units (9,680 lines of code)
0% | <1% | 11% | 30% | 57%
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% | <1% | 11% | 31% | 56%
h0% | 0% | 0% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
os-Linux0% | 2% | 6% | 36% | 54%
drivers0% | 0% | 12% | 31% | 55%
kernel0% | 0% | 15% | 24% | 60%
include0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
96 27 2
97 25 2
86 23 7
91 23 3
76 23 5
80 21 1
83 19 1
60 19 4
68 18 8
106 17 1
93 17 1
62 16 2
41 16 1
38 15 3
50 15 3
60 15 2
68 14 1
69 14 1
61 14 4
88 13 5
30 13 3
31 13 4
79 12 2
65 12 1
37 12 2
54 11 1
57 11 1
54 11 3
55 11 1
37 11 1
60 11 2
30 10 2
31 10 1
47 10 1
18 10 4
41 10 2
42 10 7
47 10 2
88 10 5
39 10 1
41 10 1
36 10 3
56 10 1
28 10 1
54 10 3
35 10 4
48 9 1
49 9 5
38 9 3
28 9 1