Linux / Drivers / Target
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 77 files with 46,361 lines of code.
    • 16 very long files (28,542 lines of code)
    • 16 long files (11,660 lines of code)
    • 15 medium size files (4,626 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (561 lines of code)
    • 26 very small files (972 lines of code)
61% | 25% | 9% | 1% | 2%
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
c64% | 26% | 9% | <1% | <1%
h0% | 0% | 27% | 23% | 48%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT64% | 27% | 5% | 1% | 1%
iscsi62% | 23% | 10% | 0% | 2%
sbp90% | 0% | 0% | 9% | 0%
loopback0% | 95% | 0% | 0% | 4%
tcm_fc0% | 0% | 93% | 0% | 6%
Longest Files (Top 50)
File# lines# units
3536 74
2879 102
2717 30
2478 85
2454 108
1781 71
cxgbit_cm.c
in iscsi/cxgbit
1656 45
1649 47
1459 29
1276 41
cxgbit_target.c
in iscsi/cxgbit
1274 27
1106 72
1103 16
1090 40
1063 24
1021 28
903 25
885 14
tcm_loop.c
in loopback
860 49
850 25
824 20
817 31
739 22
730 24
722 29
720 16
711 21
640 46
cxgbit_main.c
in iscsi/cxgbit
597 12
581 12
556 16
525 21
442 14
417 6
tfc_cmd.c
in tcm_fc
413 18
412 3
tfc_conf.c
in tcm_fc
355 20
tfc_sess.c
in tcm_fc
343 18
313 12
cxgbit.h
in iscsi/cxgbit
294 7
cxgbit_ddp.c
in iscsi/cxgbit
262 3
256 8
tfc_io.c
in tcm_fc
247 4
246 8
216 -
209 5
201 9
188 2
139 -
129 3
Files With Most Units (Top 50)
File# lines# units
2454 108
2879 102
2478 85
3536 74
1106 72
1781 71
tcm_loop.c
in loopback
860 49
1649 47
640 46
cxgbit_cm.c
in iscsi/cxgbit
1656 45
1276 41
1090 40
817 31
2717 30
722 29
1459 29
1021 28
cxgbit_target.c
in iscsi/cxgbit
1274 27
903 25
850 25
1063 24
730 24
739 22
711 21
525 21
tfc_conf.c
in tcm_fc
355 20
824 20
tfc_sess.c
in tcm_fc
343 18
tfc_cmd.c
in tcm_fc
413 18
556 16
720 16
1103 16
442 14
885 14
313 12
cxgbit_main.c
in iscsi/cxgbit
597 12
581 12
201 9
246 8
256 8
cxgbit.h
in iscsi/cxgbit
294 7
417 6
209 5
tfc_io.c
in tcm_fc
247 4
43 3
cxgbit_ddp.c
in iscsi/cxgbit
262 3
412 3
129 3
25 2
188 2
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
2478 85 1