Linux / Drivers / Reset
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 235 units with 3,262 lines of code in units (55.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (35 lines of code)
    • 5 medium complex units (196 lines of code)
    • 17 simple units (535 lines of code)
    • 212 very simple units (2,496 lines of code)
0% | 1% | 6% | 16% | 76%
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% | 6% | 16% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 1% | 6% | 15% | 76%
sti0% | 0% | 0% | 65% | 34%
hisilicon0% | 0% | 0% | 0% | 100%
tegra0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
35 26 1
56 15 1
25 14 3
25 11 1
28 11 1
62 11 1
25 10 1
24 9 1
36 9 1
29 9 3
39 9 2
47 8 1
26 8 1
43 8 1
18 7 1
44 7 1
42 7 1
42 6 1
61 6 2
14 6 1
17 6 3
17 6 3
11 6 1
30 5 1
32 5 1
19 5 3
21 5 3
21 5 2
33 5 1
10 5 1
17 5 2
30 5 1
33 5 1
29 5 1
18 5 2
15 4 3
24 4 2
15 4 5
16 4 2
26 4 1
21 4 1
23 4 1
22 4 1
24 4 1
23 4 1
17 4 2
14 4 1
14 4 1
15 4 1
15 4 2