Linux / Drivers / Memory
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 47 files with 27,205 lines of code.
    • 10 very long files (13,689 lines of code)
    • 12 long files (8,976 lines of code)
    • 13 medium size files (3,466 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (834 lines of code)
    • 6 very small files (240 lines of code)
50% | 32% | 12% | 3% | <1%
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
c54% | 32% | 9% | 2% | <1%
h0% | 50% | 36% | 6% | 6%
S0% | 0% | 100% | 0% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tegra72% | 24% | 1% | <1% | <1%
ROOT19% | 40% | 32% | 5% | 1%
samsung0% | 83% | 0% | 14% | 2%
Longest Files (Top 47)
File# lines# units
1953 88
1727 47
tegra194.c
in tegra
1342 -
tegra30.c
in tegra
1321 3
tegra210.c
in tegra
1272 -
tegra124.c
in tegra
1268 2
1261 4
1241 34
1202 27
tegra114.c
in tegra
1102 -
952 32
945 40
932 6
913 29
tegra186.c
in tegra
832 6
emif.c
in root
822 30
655 20
mc.c
in tegra
644 24
tegra20.c
in tegra
624 18
576 14
mtk-smi.c
in root
566 18
515 10
emif.h
in root
472 -
ti-aemif.c
in root
306 7
297 -
296 9
270 2
264 6
245 12
pl172.c
in root
245 5
240 11
fsl_ifc.c
in root
213 9
208 3
206 9
204 -
dfl-emif.c
in root
155 4
exynos-srom.c
in samsung
155 6
153 -
mc.h
in tegra
127 3
125 5
119 1
64 3
55 1
45 -
41 -
exynos-srom.h
in samsung
29 -
6 1
Files With Most Units (Top 37)
File# lines# units
1953 88
1727 47
945 40
1241 34
952 32
emif.c
in root
822 30
913 29
1202 27
mc.c
in tegra
644 24
655 20
mtk-smi.c
in root
566 18
tegra20.c
in tegra
624 18
576 14
245 12
240 11
515 10
fsl_ifc.c
in root
213 9
296 9
206 9
ti-aemif.c
in root
306 7
exynos-srom.c
in samsung
155 6
932 6
tegra186.c
in tegra
832 6
264 6
125 5
pl172.c
in root
245 5
dfl-emif.c
in root
155 4
1261 4
mc.h
in tegra
127 3
64 3
tegra30.c
in tegra
1321 3
208 3
tegra124.c
in tegra
1268 2
270 2
6 1
119 1
55 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
tegra20.c
in tegra
624 18 2
952 32 1