Linux / Drivers / Rtc
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 2,086 units with 38,883 lines of code in units (72.5% of code).
    • 2 very complex units (409 lines of code)
    • 7 complex units (811 lines of code)
    • 64 medium complex units (4,182 lines of code)
    • 274 simple units (9,977 lines of code)
    • 1,739 very simple units (23,504 lines of code)
1% | 2% | 10% | 25% | 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
c1% | 2% | 10% | 25% | 60%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT1% | 2% | 10% | 25% | 60%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
187 57 3
222 54 2
128 29 2
94 29 2
92 28 2
126 28 1
133 27 2
119 26 1
119 26 1
89 25 1
84 24 2
96 22 2
38 21 2
112 19 1
80 18 1
95 18 1
84 18 1
104 17 5
74 17 2
77 16 2
100 16 1
73 16 1
60 16 2
95 16 1
52 15 2
43 15 2
95 15 1
74 15 2
75 15 1
69 14 2
25 14 2
69 14 1
73 14 1
73 14 2
45 14 3
50 14 2
35 14 2
47 14 1
62 13 1
79 13 1
66 13 1
70 13 1
79 13 1
60 13 1
58 12 2
40 12 2
74 12 1
67 12 1
64 12 1
59 12 1