Linux / Drivers / Clocksource
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 1,181 units with 14,625 lines of code in units (74.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 20 medium complex units (1,298 lines of code)
    • 85 simple units (3,448 lines of code)
    • 1,076 very simple units (9,879 lines of code)
0% | 0% | 8% | 23% | 67%
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% | 8% | 23% | 67%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 8% | 23% | 67%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
101 21 1
69 15 1
98 15 3
44 15 1
57 14 2
70 14 1
58 13 2
68 13 2
60 13 1
61 13 2
75 12 1
125 12 3
60 12 2
66 12 3
40 11 2
43 11 2
35 11 2
61 11 1
58 11 1
49 11 3
31 10 2
46 10 6
59 10 1
36 10 1
23 10 1
36 10 1
42 10 1
63 10 1
49 10 1
37 9 3
46 9 1
21 9 1
34 9 2
17 9 1
32 9 1
58 9 1
78 9 2
40 9 1
43 9 1
71 8 1
23 8 3
22 8 2
30 8 1
40 8 2
70 8 1
62 8 1
52 8 1
53 8 2
36 8 1
39 8 1