freertos / coreMQTT-Agent-Demos
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 72 files with 13,503 lines of code.
    • 3 very long files (3,199 lines of code)
    • 5 long files (2,862 lines of code)
    • 13 medium size files (4,248 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,563 lines of code)
    • 40 very small files (1,631 lines of code)
23% | 21% | 31% | 11% | 12%
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
h52% | 0% | 23% | 2% | 21%
c13% | 30% | 36% | 15% | 4%
filters0% | 100% | 0% | 0% | 0%
vcxproj0% | 0% | 100% | 0% | 0%
js0% | 0% | 84% | 0% | 15%
py0% | 0% | 0% | 47% | 52%
cfg0% | 0% | 0% | 100% | 0%
ld0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source57% | 0% | 25% | 13% | 4%
lib/FreeRTOS/utilities72% | 0% | 16% | 7% | 3%
lib/FreeRTOS/network_transport0% | 76% | 0% | 0% | 23%
build/VisualStudio0% | 62% | 37% | 0% | 0%
source/demo-tasks0% | 27% | 62% | 8% | 1%
source/defender-tools0% | 69% | 0% | 21% | 8%
source0% | 0% | 77% | 22% | 0%
lib/AWS/ota-pal0% | 0% | 96% | 0% | 3%
lib/AWS/tools0% | 0% | 26% | 37% | 36%
build/VisualStudio/target-specific-source0% | 0% | 59% | 0% | 40%
source/subscription-manager0% | 0% | 0% | 81% | 18%
source/configuration-files0% | 0% | 0% | 0% | 100%
build/Cortex-M3_MPS2_QEMU_GCC0% | 0% | 0% | 0% | 100%
lib/FreeRTOS/mqtt-agent-interface0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cmsis_gcc.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
1141 141
core_cm3.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
1051 21
mbedtls_error.c
in lib/FreeRTOS/utilities/mbedtls_freertos
1007 -
using_mbedtls_pkcs11.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls_pkcs11
617 12
filters
WIN32.vcxproj.filters
in build/VisualStudio
609 -
ota_over_mqtt_demo.c
in source/demo-tasks
602 17
using_mbedtls.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls
528 15
report_builder.c
in source/defender-tools
506 4
mqtt-agent-task.c
in source
497 13
CMSDK_CM3.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
479 -
defender_demo.c
in source/demo-tasks
421 10
shadow_device_task.c
in source/demo-tasks
394 6
ota_pal.c
in lib/AWS/ota-pal/Win32
391 10
vcxproj
mbedTLS.vcxproj
in build/VisualStudio
359 -
SMM_MPS2.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
290 -
shadow_update_task.c
in source/demo-tasks
280 5
simple_sub_pub_demo.c
in source/demo-tasks
253 8
aws_iot_demo_config_template.js
in lib/AWS/tools/aws_config_offline/js
235 -
iot_crypto.c
in lib/FreeRTOS/utilities/crypto/src
224 10
logging_output_windows.c
in build/VisualStudio/target-specific-source
219 6
cmsis_compiler.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
206 1
large_message_sub_pub_demo.c
in source/demo-tasks
194 7
SetupAWS.py
in lib/AWS/tools/aws_config_quick_start
172 10
cfg
uncrustify.cfg
in lib/AWS/tools
158 -
metrics_collector.c
in source/defender-tools
158 4
startup-pico-libc.c
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
143 6
main.c
in source
143 12
startup.c
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
134 6
mpu_armv7.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
125 7
subscription_manager.c
in source/subscription-manager
118 3
logging_output_qemu.c
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
109 4
mbedtls_freertos_port.c
in lib/FreeRTOS/utilities/mbedtls_freertos
109 9
sockets_wrapper.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp
96 2
CertificateConfigurator.html
in lib/AWS/tools/aws_config_offline
92 -
FreeRTOSConfig.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
90 -
FreeRTOSConfig.h
in build/VisualStudio/target-specific-source
89 -
ld
mps2_m3.ld
in build/Cortex-M3_MPS2_QEMU_GCC
85 -
using_plaintext.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_plaintext
85 4
demo_config.h
in source/configuration-files
83 -
mbedtls_config.h
in source/configuration-files
76 -
misc.py
in lib/AWS/tools/aws_config_quick_start
70 6
using_mbedtls_pkcs11.h
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls_pkcs11
66 -
certs.py
in lib/AWS/tools/aws_config_quick_start
65 12
FreeRTOSIPConfig.h
in build/VisualStudio/target-specific-source
62 -
freertos_command_pool.c
in lib/FreeRTOS/mqtt-agent-interface
61 2
FreeRTOSIPConfig.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
60 -
using_mbedtls.h
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls
60 -
generator.js
in lib/AWS/tools/aws_config_offline/js
44 4
thing.py
in lib/AWS/tools/aws_config_quick_start
34 7
metrics_collector.h
in source/defender-tools
34 -
Files With Most Units (Top 20)
File# lines# units
cmsis_gcc.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
1141 141
core_cm3.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
1051 21
ota_over_mqtt_demo.c
in source/demo-tasks
602 17
using_mbedtls.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls
528 15
mqtt-agent-task.c
in source
497 13
using_mbedtls_pkcs11.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls_pkcs11
617 12
certs.py
in lib/AWS/tools/aws_config_quick_start
65 12
main.c
in source
143 12
iot_crypto.c
in lib/FreeRTOS/utilities/crypto/src
224 10
SetupAWS.py
in lib/AWS/tools/aws_config_quick_start
172 10
ota_pal.c
in lib/AWS/ota-pal/Win32
391 10
defender_demo.c
in source/demo-tasks
421 10
mbedtls_freertos_port.c
in lib/FreeRTOS/utilities/mbedtls_freertos
109 9
simple_sub_pub_demo.c
in source/demo-tasks
253 8
mpu_armv7.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
125 7
thing.py
in lib/AWS/tools/aws_config_quick_start
34 7
large_message_sub_pub_demo.c
in source/demo-tasks
194 7
startup-pico-libc.c
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
143 6
startup.c
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
134 6
logging_output_windows.c
in build/VisualStudio/target-specific-source
219 6
Files With Long Lines (Top 20)

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

File# lines# units# long lines
vcxproj
mbedTLS.vcxproj
in build/VisualStudio
359 - 13
mqtt-agent-task.c
in source
497 13 10
core_cm3.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
1051 21 8
cmsis_gcc.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
1141 141 8
shadow_device_task.c
in source/demo-tasks
394 6 7
ota_over_mqtt_demo.c
in source/demo-tasks
602 17 5
shadow_update_task.c
in source/demo-tasks
280 5 5
mpu_armv7.h
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source/CMSIS
125 7 4
logging_output_windows.c
in build/VisualStudio/target-specific-source
219 6 4
defender_demo.c
in source/demo-tasks
421 10 4
subscription_manager.c
in source/subscription-manager
118 3 4
main.c
in source
143 12 4
filters
WIN32.vcxproj.filters
in build/VisualStudio
609 - 3
mbedtls_error.c
in lib/FreeRTOS/utilities/mbedtls_freertos
1007 - 3
ota_pal.c
in lib/AWS/ota-pal/Win32
391 10 2
large_message_sub_pub_demo.c
in source/demo-tasks
194 7 2
demo_config.h
in source/configuration-files
83 - 2
logging_output_qemu.c
in build/Cortex-M3_MPS2_QEMU_GCC/target-specific-source
109 4 1
using_mbedtls_pkcs11.c
in lib/FreeRTOS/network_transport/freertos_plus_tcp/using_mbedtls_pkcs11
617 12 1
simple_sub_pub_demo.c
in source/demo-tasks
253 8 1