Linux / Drivers / Spi
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 139 files with 70,693 lines of code.
    • 17 very long files (22,970 lines of code)
    • 41 long files (27,378 lines of code)
    • 45 medium size files (16,094 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,522 lines of code)
    • 13 very small files (729 lines of code)
32% | 38% | 22% | 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
c32% | 39% | 22% | 5% | <1%
h0% | 0% | 54% | 0% | 45%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT32% | 38% | 22% | 4% | 1%
Longest Files (Top 50)
File# lines# units
spi.c
in root
2750 100
1672 39
1446 42
1444 60
spi-imx.c
in root
1400 65
1317 56
1288 34
1279 46
1258 39
1253 37
1244 36
1143 45
1139 23
spi-rspi.c
in root
1116 56
1101 39
1092 30
1028 31
spi-qup.c
in root
985 30
852 36
844 24
840 24
831 22
822 14
816 27
spi-sprd.c
in root
807 40
800 36
790 32
756 23
745 33
717 19
717 24
711 25
697 26
683 29
667 28
663 14
657 35
653 31
spi-dln2.c
in root
649 27
644 29
636 28
spidev.c
in root
635 9
634 14
614 20
614 26
606 25
582 10
spi-mem.c
in root
536 29
533 15
532 27
Files With Most Units (Top 50)
File# lines# units
spi.c
in root
2750 100
spi-imx.c
in root
1400 65
1444 60
1317 56
spi-rspi.c
in root
1116 56
1279 46
1143 45
1446 42
spi-sprd.c
in root
807 40
1258 39
1672 39
1101 39
1253 37
800 36
852 36
1244 36
657 35
1288 34
745 33
790 32
653 31
1028 31
1092 30
spi-qup.c
in root
985 30
spi-mem.c
in root
536 29
683 29
644 29
636 28
667 28
532 27
816 27
spi-dln2.c
in root
649 27
434 27
697 26
614 26
426 26
606 25
711 25
717 24
840 24
844 24
1139 23
756 23
831 22
513 21
411 21
spi-gpio.c
in root
258 20
614 20
417 20
429 20
Files With Long Lines (Top 2)

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

File# lines# units# long lines
852 36 1
411 21 1