Linux / Drivers / Fpga
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 460 units with 7,257 lines of code in units (65.3% of code).
    • 0 very long units (0 lines of code)
    • 14 long units (888 lines of code)
    • 97 medium size units (2,966 lines of code)
    • 130 small units (1,923 lines of code)
    • 219 very small units (1,480 lines of code)
0% | 12% | 40% | 26% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 12% | 41% | 26% | 20%
h0% | 0% | 0% | 26% | 73%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 12% | 40% | 26% | 20%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
91 12 4
75 16 4
74 9 2
71 11 1
69 11 2
68 11 2
60 12 1
58 11 2
57 10 1
56 10 2
55 6 4
52 6 2
51 13 3
51 10 4
50 8 5
49 9 1
48 14 1
48 7 4
47 6 4
46 4 4
46 5 4
45 10 1
45 9 1
44 9 1
44 9 1
42 8 1
40 7 1
39 9 3
39 8 1
39 5 3
38 7 4
38 8 1
38 6 2
38 10 2
37 6 3
36 6 3
36 4 3
35 7 5
35 8 3
35 5 2
34 7 1
34 6 2
34 6 4
33 4 1
33 5 2
33 4 1
33 8 2
32 11 3
32 7 2
32 5 2