Linux / Drivers / Irqchip
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 1,542 units with 23,474 lines of code in units (72.5% of code).
    • 5 very long units (628 lines of code)
    • 50 long units (3,367 lines of code)
    • 271 medium size units (8,261 lines of code)
    • 428 small units (6,279 lines of code)
    • 788 very small units (4,939 lines of code)
2% | 14% | 35% | 26% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c2% | 14% | 35% | 26% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT2% | 14% | 35% | 26% | 21%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
154 29 1
125 19 3
121 22 2
121 17 1
107 22 1
99 9 1
97 16 3
95 14 2
92 17 2
88 18 2
84 12 3
84 9 1
82 11 2
81 15 6
77 11 1
76 11 1
75 7 2
74 12 1
72 12 1
70 13 2
69 6 2
69 9 2
68 9 2
68 6 2
68 24 1
67 10 1
67 14 1
67 12 1
67 12 5
66 9 1
66 6 2
64 11 1
63 6 2
63 11 5
61 10 2
61 10 2
60 5 2
60 14 1
60 15 2
60 6 2
60 13 2
59 9 2
59 13 1
58 11 2
57 13 2
56 10 3
56 7 3
55 10 2
54 3 2
54 15 4