Linux / Drivers / Ps3
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 165 units with 3,333 lines of code in units (83.1% of code).
    • 0 very long units (0 lines of code)
    • 8 long units (558 lines of code)
    • 54 medium size units (1,719 lines of code)
    • 48 small units (714 lines of code)
    • 55 very small units (342 lines of code)
0% | 16% | 51% | 21% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 16% | 51% | 21% | 10%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 16% | 51% | 21% | 10%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
95 22 7
78 9 2
69 7 1
69 30 1
66 11 3
61 11 1
60 11 1
60 15 3
49 7 3
46 3 1
45 5 3
45 5 3
45 9 1
44 7 4
44 11 2
43 7 5
43 6 1
42 5 1
42 15 3
41 9 1
40 3 1
40 7 4
39 7 4
38 15 2
37 7 1
37 8 5
35 3 4
34 9 1
34 4 2
32 7 2
32 6 4
32 7 6
31 8 1
30 4 3
30 4 2
30 8 1
30 3 1
30 4 1
30 5 5
29 3 3
27 7 1
27 7 1
27 1 3
27 5 1
26 9 2
25 6 1
25 3 6
24 5 1
24 3 2
24 8 1