Linux / Drivers / Parisc
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 162 units with 3,089 lines of code in units (42.7% of code).
    • 0 very long units (0 lines of code)
    • 10 long units (714 lines of code)
    • 43 medium size units (1,308 lines of code)
    • 43 small units (628 lines of code)
    • 66 very small units (439 lines of code)
0% | 23% | 42% | 20% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 23% | 42% | 20% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 23% | 42% | 20% | 14%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
100 20 1
90 12 1
86 18 5
79 12 1
72 12 1
68 18 1
57 5 2
56 10 1
55 7 2
51 6 2
47 10 1
45 18 4
45 5 3
42 9 3
41 9 5
41 6 1
40 5 1
40 6 1
37 14 1
37 6 1
37 3 2
36 6 1
33 8 6
32 5 1
31 6 1
31 5 3
30 5 3
30 6 2
30 6 3
30 1 1
29 10 5
29 5 2
29 3 1
27 8 3
27 3 1
27 5 1
27 9 5
27 10 4
26 16 2
26 12 1
25 8 1
25 6 1
24 4 1
24 5 2
24 7 5
24 5 5
23 7 5
22 8 1
22 6 4
22 5 5