Linux / Drivers / Nvme
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 16 files with 17,094 lines of code.
    • 5 very long files (13,203 lines of code)
    • 3 long files (2,297 lines of code)
    • 3 medium size files (893 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (645 lines of code)
    • 1 very small files (56 lines of code)
77% | 13% | 5% | 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
c82% | 10% | 5% | 1% | <1%
h0% | 60% | 0% | 39% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
host77% | 13% | 5% | 3% | <1%
Longest Files (Top 16)
File# lines# units
core.c
in host
3712 202
fc.c
in host
2794 9
pci.c
in host
2594 142
tcp.c
in host
2131 101
rdma.c
in host
1972 82
fabrics.c
in host
898 24
717 44
nvme.h
in host
682 47
ioctl.c
in host
409 16
trace.c
in host
260 -
hwmon.c
in host
224 9
zns.c
in host
200 6
fc.h
in host
187 -
trace.h
in host
151 1
fabrics.h
in host
107 -
56 3
Files With Most Units (Top 13)
File# lines# units
core.c
in host
3712 202
pci.c
in host
2594 142
tcp.c
in host
2131 101
rdma.c
in host
1972 82
nvme.h
in host
682 47
717 44
fabrics.c
in host
898 24
ioctl.c
in host
409 16
hwmon.c
in host
224 9
fc.c
in host
2794 9
zns.c
in host
200 6
56 3
trace.h
in host
151 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
core.c
in host
3712 202 1