Linux / Drivers / Firewire
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 393 units with 7,812 lines of code in units (71.8% of code).
    • 6 very long units (727 lines of code)
    • 24 long units (1,687 lines of code)
    • 98 medium size units (2,978 lines of code)
    • 89 small units (1,326 lines of code)
    • 176 very small units (1,094 lines of code)
9% | 21% | 38% | 16% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c9% | 21% | 38% | 17% | 13%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT9% | 21% | 38% | 16% | 14%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
164 28 2
130 38 1
112 16 3
111 19 1
106 17 6
104 21 2
97 23 2
94 13 2
92 29 10
80 12 6
80 11 1
77 25 2
77 10 4
77 12 1
72 9 1
72 25 1
71 21 2
70 10 1
67 7 2
66 9 10
64 8 10
64 12 5
64 16 3
63 10 4
62 16 2
62 12 1
56 18 3
54 16 2
54 14 3
52 9 2
50 19 5
50 9 1
49 7 5
46 9 3
46 7 5
45 6 2
44 7 4
43 9 10
43 11 4
41 7 3
40 6 2
40 10 2
40 7 4
39 11 6
39 12 4
39 10 1
37 10 4
37 11 2
37 3 1
36 5 1