Linux / Drivers / Rpmsg
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 203 units with 3,305 lines of code in units (67.6% of code).
    • 0 very long units (0 lines of code)
    • 9 long units (636 lines of code)
    • 36 medium size units (1,160 lines of code)
    • 56 small units (844 lines of code)
    • 102 very small units (665 lines of code)
0% | 19% | 35% | 25% | 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% | 19% | 35% | 25% | 19%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 19% | 35% | 25% | 20%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
94 11 1
90 12 2
77 11 3
76 20 4
67 18 2
63 9 3
61 11 5
56 9 6
52 6 2
50 7 4
50 9 1
46 10 1
45 10 1
45 7 1
44 7 4
44 11 4
44 6 1
43 9 1
41 11 1
35 3 2
34 6 5
33 6 6
33 3 1
33 5 2
33 7 2
32 7 1
32 9 2
29 4 2
29 4 3
28 2 1
28 4 4
27 3 3
25 3 2
25 4 2
25 4 1
24 4 5
24 3 2
23 5 1
23 3 3
23 3 3
23 4 5
22 1 4
22 3 1
22 4 1
21 2 2
20 5 5
20 3 1
20 1 3
20 3 2
20 2 1