Linux / Drivers / Dax
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 127 units with 1,690 lines of code in units (70.2% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (249 lines of code)
    • 20 medium size units (622 lines of code)
    • 25 small units (364 lines of code)
    • 78 very small units (455 lines of code)
0% | 14% | 36% | 21% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 14% | 37% | 21% | 26%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 12% | 37% | 22% | 27%
hmem0% | 51% | 30% | 0% | 19%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
79 14 1
64 12 1
55 20 3
51 8 2
45 8 3
39 10 4
37 7 4
36 9 4
36 6 2
35 8 2
33 8 2
33 8 2
32 7 4
31 5 1
30 5 1
30 6 3
29 6 3
27 5 2
26 8 5
25 5 4
25 5 4
25 5 2
24 4 3
24 6 3
20 3 1
20 4 3
19 4 1
19 5 3
18 7 2
16 5 5
16 10 3
16 1 2
15 6 1
15 2 1
14 3 3
14 3 3
14 3 1
14 2 2
13 6 3
13 1 1
13 1 1
13 2 3
12 3 1
12 2 3
12 2 3
12 2 3
12 2 3
11 1 1
11 3 1
10 6 1