Linux / Arch / Parisc
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 761 units with 10,857 lines of code in units (25.7% of code).
    • 1 very complex units (224 lines of code)
    • 3 complex units (341 lines of code)
    • 25 medium complex units (1,573 lines of code)
    • 46 simple units (1,681 lines of code)
    • 686 very simple units (7,038 lines of code)
2% | 3% | 14% | 15% | 64%
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
c2% | 3% | 16% | 16% | 60%
h0% | 0% | 0% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
kernel2% | 2% | 15% | 16% | 61%
mm0% | 16% | 31% | 3% | 48%
lib0% | 0% | 16% | 20% | 62%
boot0% | 0% | 0% | 45% | 54%
include0% | 0% | 0% | 4% | 95%
math-emu0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
224 80 1
192 50 2
117 33 3
32 27 2
66 21 4
44 20 5
146 19 1
53 19 3
46 17 4
73 17 1
111 17 5
132 17 5
83 17 1
81 16 5
32 16 3
82 16 1
89 16 3
59 16 1
37 15 4
32 14 1
46 12 1
34 12 1
39 11 3
53 11 3
56 11 2
55 11 1
54 11 2
36 11 2
34 11 6
64 10 3
53 10 3
64 10 3
42 10 3
88 10 1
29 10 1
60 9 3
47 9 1
34 9 1
58 9 1
56 9 1
31 9 1
40 8 1
22 8 1
35 8 4
17 8 2
18 8 2
48 8 1
46 8 1
35 8 2
46 8 3