Linux / Drivers / Dax
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 127 units with 1,690 lines of code in units (70.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (198 lines of code)
    • 19 simple units (558 lines of code)
    • 105 very simple units (934 lines of code)
0% | 0% | 11% | 33% | 55%
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% | 11% | 32% | 55%
h0% | 0% | 0% | 71% | 28%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 12% | 31% | 55%
hmem0% | 0% | 0% | 51% | 49%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
55 20 3
79 14 1
64 12 1
39 10 4
16 10 3
36 9 4
51 8 2
45 8 3
35 8 2
33 8 2
33 8 2
26 8 5
37 7 4
18 7 2
32 7 4
10 6 1
15 6 1
13 6 3
36 6 2
24 6 3
30 6 3
29 6 3
16 5 5
30 5 1
25 5 4
25 5 4
19 5 3
25 5 2
27 5 2
31 5 1
19 4 1
24 4 3
20 4 3
9 3 5
9 3 5
9 3 3
20 3 1
14 3 3
14 3 3
12 3 1
14 3 1
11 3 1
6 2 3
7 2 2
7 2 1
7 2 1
8 2 1
6 2 1
9 2 2
9 2 1