Linux / Drivers / Nubus
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 43 units with 647 lines of code in units (75.3% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (142 lines of code)
    • 6 medium size units (148 lines of code)
    • 15 small units (220 lines of code)
    • 20 very small units (137 lines of code)
0% | 21% | 22% | 34% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 21% | 22% | 34% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 21% | 22% | 34% | 21%
Alternative Visuals
Longest Units
Top 43 longest units
Unit# linesMcCabe index# params
77 17 3
65 10 2
30 3 3
28 4 3
26 5 2
22 3 3
21 3 3
21 4 3
20 2 3
19 5 1
18 4 3
16 4 3
16 3 2
16 2 3
16 3 3
15 2 3
14 3 3
13 3 2
12 3 1
12 2 2
11 3 3
11 3 3
11 2 1
10 4 3
10 2 3
10 1 1
9 2 1
8 2 2
8 1 2
8 1 2
8 2 1
8 2 1
7 1 2
7 1 2
6 2 1
6 1 1
6 2 1
5 1 1
5 1 2
4 1 2
4 1 1
4 1 1
4 1 1