Linux / Drivers / Atm
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 577 units with 17,598 lines of code in units (57.1% of code).
    • 30 very long units (4,929 lines of code)
    • 64 long units (4,586 lines of code)
    • 156 medium size units (4,956 lines of code)
    • 124 small units (1,903 lines of code)
    • 203 very small units (1,224 lines of code)
28% | 26% | 28% | 10% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c28% | 26% | 28% | 10% | 6%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT28% | 26% | 28% | 10% | 6%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
400 57 2
320 55 1
315 49 2
267 47 1
234 16 1
207 30 1
186 39 1
184 43 3
168 15 1
168 30 1
151 30 1
150 10 1
139 24 5
138 19 1
136 40 1
133 22 2
131 26 2
131 21 2
127 19 1
123 18 2
122 31 3
117 11 1
117 21 2
113 10 2
113 23 3
109 24 1
109 13 1
108 10 2
107 16 2
106 11 1
100 14 6
99 15 2
99 14 2
98 19 2
97 21 2
96 13 1
96 15 5
94 20 2
91 14 1
90 27 3
88 11 1
88 18 1
85 6 5
85 39 4
84 11 1
83 11 3
80 11 2
80 11 2
80 11 1
78 9 1