Linux / Drivers / Ps3
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 165 units with 3,333 lines of code in units (83.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (69 lines of code)
    • 8 medium complex units (466 lines of code)
    • 23 simple units (885 lines of code)
    • 133 very simple units (1,913 lines of code)
0% | 2% | 13% | 26% | 57%
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% | 2% | 13% | 26% | 57%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 2% | 13% | 26% | 57%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
69 30 1
95 22 7
60 15 3
38 15 2
42 15 3
60 11 1
44 11 2
66 11 3
61 11 1
41 9 1
26 9 2
34 9 1
45 9 1
78 9 2
30 8 1
31 8 1
24 8 1
37 8 5
44 7 4
27 7 1
43 7 5
27 7 1
69 7 1
32 7 2
49 7 3
40 7 4
39 7 4
37 7 1
32 7 6
25 6 1
32 6 4
43 6 1
18 5 1
24 5 1
45 5 3
45 5 3
42 5 1
16 5 1
14 5 1
27 5 1
30 5 5
22 5 3
22 5 3
22 5 3
20 4 4
21 4 3
34 4 2
30 4 3
21 4 2
30 4 2