Linux / Drivers / Ntb
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 10,063 lines of code.
    • 4 very long files (5,966 lines of code)
    • 3 long files (2,199 lines of code)
    • 4 medium size files (1,334 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (408 lines of code)
    • 2 very small files (156 lines of code)
59% | 21% | 13% | 4% | 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
c67% | 17% | 15% | 0% | 0%
h0% | 54% | 0% | 33% | 12%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hw53% | 28% | 11% | 5% | 1%
ROOT79% | 0% | 20% | 0% | 0%
Longest Files (Top 16)
File# lines# units
1765 59
ntb_hw_gen1.c
in hw/intel
1586 66
ntb_hw_idt.c
in hw/idt
1430 76
1185 66
ntb_hw_amd.c
in hw/amd
946 54
ntb_hw_idt.h
in hw/idt
666 -
ntb_hw_epf.c
in hw/epf
587 31
ntb_hw_gen3.c
in hw/intel
441 12
ntb_hw_gen4.c
in hw/intel
432 12
msi.c
in root
251 12
core.c
in root
210 18
ntb_hw_intel.h
in hw/intel
145 3
ntb_hw_amd.h
in hw/amd
136 2
ntb_hw_gen1.h
in hw/intel
127 -
ntb_hw_gen4.h
in hw/intel
91 1
ntb_hw_gen3.h
in hw/intel
65 2
Files With Most Units (Top 14)
File# lines# units
ntb_hw_idt.c
in hw/idt
1430 76
ntb_hw_gen1.c
in hw/intel
1586 66
1185 66
1765 59
ntb_hw_amd.c
in hw/amd
946 54
ntb_hw_epf.c
in hw/epf
587 31
core.c
in root
210 18
msi.c
in root
251 12
ntb_hw_gen4.c
in hw/intel
432 12
ntb_hw_gen3.c
in hw/intel
441 12
ntb_hw_intel.h
in hw/intel
145 3
ntb_hw_gen3.h
in hw/intel
65 2
ntb_hw_amd.h
in hw/amd
136 2
ntb_hw_gen4.h
in hw/intel
91 1
Files With Long Lines (Top 0)

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

File# lines# units# long lines