Linux / Drivers / Nvdimm
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 519 units with 8,961 lines of code in units (74.3% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (568 lines of code)
    • 29 medium complex units (1,628 lines of code)
    • 82 simple units (2,542 lines of code)
    • 404 very simple units (4,223 lines of code)
0% | 6% | 18% | 28% | 47%
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% | 6% | 18% | 29% | 45%
h0% | 0% | 4% | 0% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 6% | 18% | 28% | 47%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
157 41 5
117 33 4
117 32 2
177 29 4
42 22 3
56 21 3
60 21 1
90 21 6
128 20 2
66 19 2
58 18 2
83 18 4
103 18 1
67 16 1
52 15 1
66 15 2
24 15 7
32 15 2
69 15 6
44 14 6
48 13 3
26 13 2
18 13 3
59 13 1
58 13 1
80 12 5
45 12 1
41 12 1
71 12 1
17 11 1
20 11 3
26 11 2
79 11 1
30 10 1
28 10 3
38 10 3
33 10 1
32 10 4
48 10 4
34 10 1
41 10 4
37 10 3
38 10 4
46 10 3
19 10 5
29 10 4
41 10 4
33 10 3
36 9 3
34 9 4