Linux / Arch / Nios2
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 217 units with 2,688 lines of code in units (43.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (146 lines of code)
    • 4 medium complex units (298 lines of code)
    • 10 simple units (315 lines of code)
    • 202 very simple units (1,929 lines of code)
0% | 5% | 11% | 11% | 71%
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% | 6% | 12% | 13% | 68%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
mm0% | 18% | 0% | 17% | 63%
kernel0% | 0% | 21% | 12% | 66%
include0% | 0% | 0% | 0% | 100%
boot0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
platform0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
146 41 3
67 18 1
108 17 2
45 15 1
78 13 5
35 10 3
35 8 4
32 8 1
60 8 1
22 8 3
45 7 2
23 6 3
26 6 5
23 6 5
14 6 1
18 5 1
29 5 3
18 5 1
37 5 6
29 5 4
21 4 1
18 4 3
16 4 3
26 4 1
35 4 5
28 4 1
18 4 1
9 4 3
16 4 6
10 3 1
31 3 3
35 3 3
11 3 1
15 3 2
16 3 2
19 3 2
7 3 3
10 3 1
24 3 1
16 3 1
18 3 2
16 3 1
14 3 3
21 3 1
18 3 1
15 3 1
49 3 4
26 3 3
6 2 1
7 2 1