Linux / Drivers / Cpufreq
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,081 units with 19,949 lines of code in units (73.8% of code).
    • 0 very complex units (0 lines of code)
    • 7 complex units (979 lines of code)
    • 55 medium complex units (3,683 lines of code)
    • 155 simple units (5,432 lines of code)
    • 864 very simple units (9,855 lines of code)
0% | 4% | 18% | 27% | 49%
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% | 4% | 18% | 27% | 49%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 4% | 18% | 27% | 49%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
173 38 1
154 38 1
145 38 1
116 32 1
155 29 2
102 28 2
134 26 1
145 25 1
84 24 1
124 24 1
68 22 1
65 22 1
85 21 3
104 21 1
96 21 2
96 20 2
97 19 1
87 19 1
103 18 1
72 18 2
70 17 1
57 17 1
56 16 2
38 16 1
76 16 2
87 16 2
58 15 5
47 15 1
77 15 1
90 15 1
59 15 5
55 14 1
125 14 1
95 14 1
102 14 1
43 14 1
53 13 1
30 13 2
75 13 1
47 13 1
47 13 2
48 13 3
39 13 1
50 13 3
64 12 2
42 12 3
40 12 1
45 12 1
56 12 1
45 12 3