aws-samples / aws-iot-alexa-connected-home-demo
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 688 files with 137,783 lines of code.
    • 24 very long files (47,470 lines of code)
    • 29 long files (19,535 lines of code)
    • 116 medium size files (35,832 lines of codeclsfd_ftr_w_mp_ins)
    • 138 small files (19,095 lines of code)
    • 381 very small files (15,851 lines of code)
34% | 14% | 26% | 13% | 11%
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
h57% | 5% | 5% | 12% | 18%
c26% | 20% | 35% | 11% | 5%
S0% | 13% | 72% | 7% | 7%
py0% | 0% | 35% | 32% | 32%
s0% | 0% | 18% | 70% | 10%
asm0% | 0% | 0% | 90% | 9%
js0% | 0% | 0% | 57% | 42%
html0% | 0% | 0% | 0% | 100%
inc0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
amazon-freertos/lib/FreeRTOS40% | 3% | 27% | 16% | 12%
amazon-freertos/lib/FreeRTOS-Plus-TCP34% | 32% | 22% | 7% | 2%
amazon-freertos/lib/mqtt100% | 0% | 0% | 0% | 0%
amazon-freertos/lib/ota43% | 24% | 28% | 2% | <1%
amazon-freertos/lib/shadow88% | 0% | 0% | 11% | 0%
amazon-freertos/lib/pkcs1124% | 0% | 62% | 10% | 3%
amazon-freertos/lib/wifi19% | 52% | 27% | 0% | <1%
amazon-freertos/lib/secure_sockets0% | 86% | 13% | 0% | 0%
amazon-freertos/lib/include0% | 18% | 6% | 23% | 50%
amazon-freertos/lib/greengrass0% | 70% | 29% | 0% | 0%
amazon-freertos/lib/tls0% | 100% | 0% | 0% | 0%
amazon-freertos/lib/FreeRTOS-Plus-POSIX0% | 23% | 34% | 26% | 15%
amazon-freertos/tools/ota_e2e_tests0% | 0% | 27% | 24% | 48%
amazon-freertos/tools/checks0% | 0% | 84% | 0% | 15%
amazon-freertos/lib/defender0% | 0% | 55% | 0% | 44%
amazon-freertos/lib/cbor0% | 0% | 19% | 56% | 24%
amazon-freertos/tools/cbmc0% | 0% | 25% | 16% | 58%
amazon-freertos/tools/aws_config_quick_start0% | 0% | 0% | 69% | 30%
amazon-freertos/tools/git0% | 0% | 0% | 96% | 3%
amazon-freertos/lib/crypto0% | 0% | 0% | 100% | 0%
function0% | 0% | 0% | 100% | 0%
amazon-freertos/tools/certificate_configuration0% | 0% | 0% | 0% | 100%
amazon-freertos/tools/echo_server0% | 0% | 0% | 0% | 100%
amazon-freertos/lib/bufferpool0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
amazon-freertos/lib/utils0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ioat91sam7x256.h
in amazon-freertos/lib/FreeRTOS/portable/GCC/ARM7_AT91SAM7S
3908 -
tasks.c
in amazon-freertos/lib/FreeRTOS
3159 80
FreeRTOS_Sockets.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
2482 46
lib_AT91SAM7X256.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2468 355
lib_AT91SAM7X128.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2468 355
lib_AT91SAM7X256.h
in amazon-freertos/lib/FreeRTOS/portable/GCC/ARM7_AT91SAM7S
2468 355
AT91SAM7X256.h
in amazon-freertos/lib/FreeRTOS/portable/GCC/ARM7_AT91SAM7S
2299 -
AT91SAM7X256.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2285 -
AT91SAM7X128.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2285 -
aws_ota_agent.c
in amazon-freertos/lib/ota
2057 38
FreeRTOS_TCP_IP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
2038 29
AT91SAM7X256_inc.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2016 -
AT91SAM7X128_inc.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2016 -
queue.c
in amazon-freertos/lib/FreeRTOS
1911 49
lib_AT91SAM7S64.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
1765 248
aws_mqtt_lib.c
in amazon-freertos/lib/mqtt
1753 37
AT91SAM7S64.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
1590 -
AT91SAM7S64_inc.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
1487 -
FreeRTOS_IP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
1429 45
aws_shadow.c
in amazon-freertos/lib/shadow
1183 25
FreeRTOS_TCP_WIN.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
1175 35
aws_pkcs11_mbedtls.c
in amazon-freertos/lib/pkcs11/mbedtls
1113 7
aws_wifi.c
in amazon-freertos/lib/wifi/portable/mediatek/mt7697hx-dev-kit
1080 46
aws_mqtt_agent.c
in amazon-freertos/lib/mqtt
1035 33
FreeRTOS_DNS.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
996 17
mpu_wrappers.c
in amazon-freertos/lib/FreeRTOS/portable/Common
923 96
NetworkInterface.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/STM32Fxx
899 15
stream_buffer.c
in amazon-freertos/lib/FreeRTOS
831 25
aws_wifi.c
in amazon-freertos/lib/wifi/portable/ti/cc3220_launchpad
827 29
aws_secure_sockets.c
in amazon-freertos/lib/secure_sockets/portable/ti/cc3220_launchpad
813 16
FreeRTOS.h
in amazon-freertos/lib/include
781 -
NetworkInterface.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/ksz8851snl
714 16
aws_wifi.c
in amazon-freertos/lib/wifi/portable/nxp/lpc54018iotmodule
699 29
aws_wifi.c
in amazon-freertos/lib/wifi/portable/espressif/esp32_devkitc_esp_wrover_kit
689 25
aws_greengrass_discovery.c
in amazon-freertos/lib/greengrass
672 13
aws_secure_sockets.c
in amazon-freertos/lib/secure_sockets/portable/st/stm32l475_discovery
671 14
timers.c
in amazon-freertos/lib/FreeRTOS
661 24
aws_secure_sockets.c
in amazon-freertos/lib/secure_sockets/portable/infineon/xmc4800_iotkit
656 16
NetworkInterface.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/LPC18xx
655 16
S
port_asm.S
in amazon-freertos/lib/FreeRTOS/portable/MPLAB/PIC32MZ
639 -
FreeRTOS_DHCP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
634 8
aws_wifi.c
in amazon-freertos/lib/wifi/portable/microchip/curiosity_pic32mzef
616 32
aws_ota_pal.c
in amazon-freertos/lib/ota/portable/microchip/curiosity_pic32mzef
613 15
gmac.h
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/ATSAM4E/component
589 -
gmac.h
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/ATSAM4E/instance
586 60
gmac.h
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/ATSAM4E
584 60
NetworkInterface_eth.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/pic32mzef
567 20
aws_tls.c
in amazon-freertos/lib/tls
565 13
aws_ota_pal.c
in amazon-freertos/lib/ota/portable/espressif/esp32_devkitc_esp_wrover_kit
557 16
aws_secure_sockets.c
in amazon-freertos/lib/secure_sockets/portable/lwip
551 14
Files With Most Units (Top 20)
File# lines# units
lib_AT91SAM7X256.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2468 355
lib_AT91SAM7X128.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
2468 355
lib_AT91SAM7X256.h
in amazon-freertos/lib/FreeRTOS/portable/GCC/ARM7_AT91SAM7S
2468 355
lib_AT91SAM7S64.h
in amazon-freertos/lib/FreeRTOS/portable/IAR/AtmelSAM7S64
1765 248
mpu_wrappers.c
in amazon-freertos/lib/FreeRTOS/portable/Common
923 96
tasks.c
in amazon-freertos/lib/FreeRTOS
3159 80
gmac.h
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/ATSAM4E/instance
586 60
gmac.h
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/ATSAM4E
584 60
queue.c
in amazon-freertos/lib/FreeRTOS
1911 49
FreeRTOS_Sockets.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
2482 46
aws_wifi.c
in amazon-freertos/lib/wifi/portable/mediatek/mt7697hx-dev-kit
1080 46
FreeRTOS_IP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
1429 45
aws_ota_agent.c
in amazon-freertos/lib/ota
2057 38
aws_mqtt_lib.c
in amazon-freertos/lib/mqtt
1753 37
FreeRTOS_TCP_WIN.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
1175 35
aws_ota_aws_agent.py
in amazon-freertos/tools/ota_e2e_tests/aws_ota_test
499 34
aws_mqtt_agent.c
in amazon-freertos/lib/mqtt
1035 33
aws_wifi.c
in amazon-freertos/lib/wifi/portable/microchip/curiosity_pic32mzef
616 32
FreeRTOS_TCP_IP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
2038 29
aws_wifi.c
in amazon-freertos/lib/wifi/portable/nxp/lpc54018iotmodule
699 29
Files With Long Lines (Top 20)

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

File# lines# units# long lines
aws_mqtt_lib.c
in amazon-freertos/lib/mqtt
1753 37 139
aws_ota_agent.c
in amazon-freertos/lib/ota
2057 38 78
port.c
in amazon-freertos/lib/FreeRTOS/portable/MPLAB/PIC24_dsPIC
204 6 55
tasks.c
in amazon-freertos/lib/FreeRTOS
3159 80 51
FreeRTOS_TCP_IP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
2038 29 49
FreeRTOS_TCP_WIN.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
1175 35 40
FreeRTOS_Sockets.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
2482 46 37
mpu_prototypes.h
in amazon-freertos/lib/include/private
107 - 33
FreeRTOS_IP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
1429 45 30
mpu_wrappers.c
in amazon-freertos/lib/FreeRTOS/portable/Common
923 96 26
aws_shadow.c
in amazon-freertos/lib/shadow
1183 25 22
FreeRTOS_DHCP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
634 8 20
queue.c
in amazon-freertos/lib/FreeRTOS
1911 49 20
s
portasm.s
in amazon-freertos/lib/FreeRTOS/portable/IAR/ARM_CM33/non_secure
273 - 20
s
portasm.s
in amazon-freertos/lib/FreeRTOS/portable/ARMv8M/non_secure/portable/IAR/ARM_CM33
273 - 20
FreeRTOS_ARP.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source
402 12 19
queue.h
in amazon-freertos/lib/include
92 - 19
aws_mqtt_agent.c
in amazon-freertos/lib/mqtt
1035 33 17
afqp_check.py
in amazon-freertos/tools/checks/afqp/afqp_check/src
295 14 17
NetworkInterface_eth.c
in amazon-freertos/lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/pic32mzef
567 20 16