Linux / Arch / Ia64
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 461 units with 6,596 lines of code in units (15.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (81 lines of code)
    • 18 medium complex units (968 lines of code)
    • 49 simple units (1,558 lines of code)
    • 393 very simple units (3,989 lines of code)
0% | 1% | 14% | 23% | 60%
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% | 16% | 25% | 56%
h0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
kernel0% | 1% | 17% | 21% | 58%
mm0% | 0% | 17% | 26% | 55%
lib0% | 0% | 57% | 0% | 42%
hp0% | 0% | 0% | 48% | 51%
pci0% | 0% | 0% | 62% | 37%
uv0% | 0% | 0% | 32% | 67%
include0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
81 29 5
87 23 4
65 20 2
63 19 2
53 18 2
108 17 1
30 15 5
24 15 4
62 15 1
60 13 3
59 13 2
29 12 1
63 12 1
61 12 1
47 12 1
30 11 2
35 11 2
65 11 1
27 11 3
35 10 1
72 10 1
38 10 5
24 10 3
20 10 2
32 10 4
22 9 6
23 9 6
30 9 2
22 9 1
45 9 11
21 8 6
49 8 3
36 8 1
27 8 1
25 8 2
30 7 1
65 7 5
23 7 5
17 7 1
25 7 3
27 7 1
34 7 1
25 7 2
37 7 1
29 7 1
22 7 2
16 7 3
25 7 2
41 7 2
21 6 2