Linux / Drivers / Visorbus
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 118 units with 1,916 lines of code in units (72.2% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (396 lines of code)
    • 18 medium size units (575 lines of code)
    • 37 small units (532 lines of code)
    • 57 very small units (413 lines of code)
0% | 20% | 30% | 27% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 20% | 30% | 27% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 20% | 30% | 27% | 21%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
82 13 1
75 20 2
64 8 1
62 11 1
58 8 2
55 7 1
47 12 1
44 10 1
41 9 7
40 8 2
39 7 1
37 4 1
36 7 1
32 6 1
31 7 2
29 7 3
28 5 1
28 3 1
26 5 2
25 5 2
24 6 3
24 5 3
23 3 2
21 1 1
20 3 1
20 3 1
20 5 2
19 6 1
18 3 4
17 3 1
17 2 1
16 3 4
16 3 4
16 3 3
15 3 4
15 2 3
15 3 4
15 3 4
15 3 3
15 3 3
14 2 3
14 2 3
14 2 3
14 2 3
14 3 3
14 2 4
13 2 3
13 2 3
13 2 3
13 3 4