Linux / Drivers / Iio
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 570 files with 200,007 lines of code.
    • 31 very long files (40,446 lines of code)
    • 108 long files (73,034 lines of code)
    • 193 medium size files (64,047 lines of codeclsfd_ftr_w_mp_ins)
    • 104 small files (15,710 lines of code)
    • 134 very small files (6,770 lines of code)
20% | 36% | 32% | 7% | 3%
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
c20% | 37% | 32% | 7% | 2%
h0% | 0% | 32% | 18% | 48%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
adc19% | 38% | 34% | 6% | <1%
accel42% | 20% | 22% | 8% | 6%
imu47% | 25% | 14% | 8% | 4%
light19% | 48% | 29% | 2% | <1%
ROOT58% | 14% | 18% | 5% | 3%
proximity21% | 37% | 38% | 3% | 0%
temperature24% | 26% | 37% | 9% | 1%
addac100% | 0% | 0% | 0% | 0%
gyro15% | 33% | 33% | 7% | 10%
dac0% | 43% | 42% | 12% | 1%
magnetometer0% | 77% | 12% | 0% | 9%
pressure0% | 47% | 30% | 9% | 12%
chemical0% | 39% | 43% | 14% | 2%
frequency0% | 67% | 32% | 0% | 0%
common0% | 35% | 49% | 8% | 6%
trigger0% | 55% | 0% | 25% | 19%
humidity0% | 21% | 50% | 23% | 5%
cdc0% | 100% | 0% | 0% | 0%
filter0% | 100% | 0% | 0% | 0%
health0% | 25% | 68% | 6% | 0%
potentiometer0% | 0% | 48% | 46% | 4%
orientation0% | 0% | 100% | 0% | 0%
buffer0% | 0% | 51% | 40% | 7%
position0% | 0% | 100% | 0% | 0%
dummy0% | 0% | 50% | 34% | 15%
multiplexer0% | 0% | 100% | 0% | 0%
potentiostat0% | 0% | 100% | 0% | 0%
afe0% | 0% | 100% | 0% | 0%
amplifiers0% | 0% | 58% | 41% | 0%
resolver0% | 0% | 0% | 61% | 38%
Longest Files (Top 50)
File# lines# units
st_lsm6dsx_core.c
in imu/st_lsm6dsx
2041 26
1722 67
1594 65
tsl2772.c
in light
1590 34
1554 54
1483 52
1481 72
max1363.c
in adc
1467 21
kxcjk-1013.c
in accel
1445 38
mma8452.c
in accel
1441 43
inv_mpu_core.c
in imu/inv_mpu6050
1406 29
ltr501.c
in light
1401 39
1358 27
1273 5
sx9310.c
in proximity
1270 45
1235 28
kmx61.c
in imu
1219 36
ltc2983.c
in temperature
1218 22
1209 44
ad74413r.c
in addac
1172 55
1140 35
1137 38
1117 20
sca3000.c
in accel
1115 32
si1145.c
in light
1086 24
1064 25
1051 27
1050 18
1040 34
1037 40
mma9553.c
in accel
1030 26
adxl372.c
in accel
985 38
tsl2591.c
in light
966 30
vcnl4000.c
in light
953 36
bma180.c
in accel
952 32
ad5064.c
in dac
934 27
915 21
915 29
apds9960.c
in light
915 24
zpa2326.c
in pressure
911 40
ad3552r.c
in dac
904 24
bmc150_magn.c
in magnetometer
888 27
bmp280-core.c
in pressure
869 31
rpr0521.c
in light
866 28
si1133.c
in light
857 30
ad7192.c
in adc
847 26
ad9523.c
in frequency
845 16
ak8975.c
in magnetometer
831 22
830 12
isl29501.c
in proximity
824 25
Files With Most Units (Top 50)
File# lines# units
1481 72
1722 67
1594 65
ad74413r.c
in addac
1172 55
1554 54
1483 52
sx9310.c
in proximity
1270 45
1209 44
mma8452.c
in accel
1441 43
810 42
zpa2326.c
in pressure
911 40
1037 40
ltr501.c
in light
1401 39
kxcjk-1013.c
in accel
1445 38
adxl372.c
in accel
985 38
1137 38
kmx61.c
in imu
1219 36
vcnl4000.c
in light
953 36
1140 35
1040 34
inkern.c
in root
760 34
tsl2772.c
in light
1590 34
sx9500.c
in proximity
820 33
sca3000.c
in accel
1115 32
bma180.c
in accel
952 32
703 31
495 31
bmp280-core.c
in pressure
869 31
mlx90632.c
in temperature
792 31
802 30
782 30
tsl2591.c
in light
966 30
si1133.c
in light
857 30
inv_mpu_core.c
in imu/inv_mpu6050
1406 29
915 29
1235 28
lm3533-als.c
in light
712 28
rpr0521.c
in light
866 28
us5182d.c
in light
755 28
scd30_core.c
in chemical
589 28
bmc150_magn.c
in magnetometer
888 27
1051 27
1358 27
ad5064.c
in dac
934 27
st_lsm6dsx_core.c
in imu/st_lsm6dsx
2041 26
mma9553.c
in accel
1030 26
ad7192.c
in adc
847 26
tsl2563.c
in light
704 26
ad5758.c
in dac
674 26
dps310.c
in pressure
593 25
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
495 31 1