Linux / Drivers / Devfreq
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 205 units with 4,246 lines of code in units (75.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 18 medium complex units (1,253 lines of code)
    • 31 simple units (1,048 lines of code)
    • 156 very simple units (1,945 lines of code)
0% | 0% | 29% | 24% | 45%
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% | 0% | 29% | 24% | 45%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 26% | 24% | 49%
event0% | 0% | 45% | 25% | 28%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
155 25 2
70 21 1
118 17 1
82 17 1
98 16 1
76 16 2
83 15 1
76 14 2
54 14 2
43 13 2
53 13 2
52 12 2
63 11 1
62 11 3
36 11 1
56 11 4
42 11 4
34 11 1
40 10 3
63 10 1
44 9 3
56 8 2
41 8 1
22 8 1
36 7 3
43 7 2
43 7 2
31 7 3
21 7 1
31 7 2
22 7 1
22 7 1
50 7 1
33 7 1
40 7 1
17 7 1
18 7 2
27 6 3
40 6 1
32 6 1
24 6 3
21 6 2
42 6 1
60 6 2
33 6 3
34 6 1
35 6 2
14 6 1
13 6 1
27 5 3