Linux / Drivers / Irqchip
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,542 units with 23,474 lines of code in units (72.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (154 lines of code)
    • 38 medium complex units (2,643 lines of code)
    • 156 simple units (5,824 lines of code)
    • 1,347 very simple units (14,853 lines of code)
0% | <1% | 11% | 24% | 63%
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% | 24% | 63%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | <1% | 11% | 24% | 63%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
154 29 1
68 24 1
121 22 2
107 22 1
125 19 3
88 18 2
92 17 2
121 17 1
97 16 3
81 15 6
60 15 2
43 15 3
54 15 4
60 14 1
95 14 2
67 14 1
46 13 2
59 13 1
70 13 2
57 13 2
60 13 2
48 12 2
74 12 1
50 12 3
84 12 3
67 12 1
36 12 1
40 12 4
67 12 5
72 12 1
64 11 1
82 11 2
76 11 1
40 11 4
63 11 5
77 11 1
45 11 2
29 11 2
58 11 2
61 10 2
61 10 2
67 10 1
49 10 1
48 10 4
43 10 3
55 10 2
50 10 1
56 10 3
28 10 2
32 10 1