Linux / Arch / Alpha
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 452 units with 5,446 lines of code in units (13.5% of code).
    • 1 very complex units (150 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (681 lines of code)
    • 27 simple units (1,001 lines of code)
    • 413 very simple units (3,614 lines of code)
2% | 0% | 12% | 18% | 66%
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
c3% | 0% | 17% | 24% | 54%
h0% | 0% | 0% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
boot33% | 0% | 0% | 18% | 47%
kernel0% | 0% | 20% | 27% | 52%
lib0% | 0% | 22% | 0% | 77%
include0% | 0% | 0% | 4% | 95%
math-emu0% | 0% | 0% | 0% | 100%
mm0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
150 54 3
160 20 4
41 15 3
57 15 5
55 14 5
60 13 2
119 13 4
41 12 3
40 11 3
40 11 3
48 11 1
20 11 2
23 9 4
43 9 2
41 9 5
49 8 2
33 8 2
44 8 4
36 8 4
24 8 1
27 8 1
44 8 2
39 8 1
21 8 1
21 8 1
19 7 1
23 7 1
24 7 1
37 6 1
21 6 4
21 6 4
22 6 3
24 6 5
18 6 1
135 6 1
111 6 1
24 6 4
50 6 1
27 6 4
16 5 1
25 5 3
22 5 3
22 5 3
20 5 1
20 5 1
15 5 2
27 5 3
15 5 2
24 5 4
31 4 3