Linux / Drivers / Of
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 18 files with 10,282 lines of code.
    • 2 very long files (3,756 lines of code)
    • 5 long files (3,889 lines of code)
    • 6 medium size files (1,942 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (695 lines of code)
    • 0 very small files (0 lines of code)
36% | 37% | 18% | 6% | 0%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c36% | 38% | 19% | 5% | 0%
h0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT36% | 37% | 18% | 6% | 0%
Longest Files (Top 18)
File# lines# units
unittest.c
in root
2416 75
base.c
in root
1340 48
fdt.c
in root
910 38
property.c
in root
856 24
overlay.c
in root
752 23
address.c
in root
749 34
dynamic.c
in root
622 30
platform.c
in root
472 15
irq.c
in root
410 12
305 10
kexec.c
in root
281 8
device.c
in root
248 9
resolver.c
in root
226 6
174 8
pdt.c
in root
158 3
of_numa.c
in root
123 6
kobj.c
in root
123 10
117 10
Files With Most Units (Top 18)
File# lines# units
unittest.c
in root
2416 75
base.c
in root
1340 48
fdt.c
in root
910 38
address.c
in root
749 34
dynamic.c
in root
622 30
property.c
in root
856 24
overlay.c
in root
752 23
platform.c
in root
472 15
irq.c
in root
410 12
kobj.c
in root
123 10
117 10
305 10
device.c
in root
248 9
174 8
kexec.c
in root
281 8
of_numa.c
in root
123 6
resolver.c
in root
226 6
pdt.c
in root
158 3
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 55 long lines.

File# lines# units# long lines
unittest.c
in root
2416 75 54
dynamic.c
in root
622 30 1