Linux / Drivers / Mailbox
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 432 units with 7,827 lines of code in units (66.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (146 lines of code)
    • 24 medium complex units (1,641 lines of code)
    • 52 simple units (1,923 lines of code)
    • 355 very simple units (4,117 lines of code)
0% | 1% | 20% | 24% | 52%
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% | 1% | 20% | 24% | 52%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 1% | 20% | 24% | 52%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
146 27 1
133 23 1
118 22 1
124 19 2
102 19 1
99 17 1
43 17 8
79 16 1
25 15 1
91 15 1
71 14 1
66 13 1
69 13 1
47 13 1
71 12 1
56 12 1
38 11 2
54 11 1
50 11 2
25 11 1
71 11 3
68 11 2
38 11 2
69 11 1
34 11 1
63 10 1
63 10 1
105 10 1
42 10 1
41 9 1
42 9 4
30 9 1
42 8 1
42 8 1
49 8 2
42 8 2
30 8 1
42 8 3
50 8 2
33 8 2
56 8 4
42 7 1
28 7 1
29 7 2
34 7 2
25 7 1
40 7 2
23 7 1
40 7 2
33 7 3