awslabs / aws-iot-device-client
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 59 files with 8,306 lines of code.
    • 1 very long files (1,650 lines of code)
    • 2 long files (1,172 lines of code)
    • 9 medium size files (2,993 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (774 lines of code)
    • 41 very small files (1,717 lines of code)
19% | 14% | 36% | 9% | 20%
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
cpp25% | 17% | 41% | 9% | 6%
h0% | 0% | 17% | 7% | 75%
cmake0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/config85% | 0% | 14% | 0% | 0%
source/fleetprovisioning0% | 91% | 0% | 0% | 8%
source/jobs0% | 37% | 40% | 0% | 22%
source/shadow0% | 0% | 86% | 0% | 13%
source0% | 0% | 84% | 0% | 15%
source/util0% | 0% | 44% | 13% | 42%
source/tunneling0% | 0% | 32% | 43% | 23%
source/logging0% | 0% | 0% | 37% | 62%
source/devicedefender0% | 0% | 0% | 69% | 30%
cmake-toolchain0% | 0% | 0% | 0% | 100%
setup0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Config.cpp
in source/config
1650 47
FleetProvisioning.cpp
in source/fleetprovisioning
630 8
JobsFeature.cpp
in source/jobs
542 26
SampleShadowFeature.cpp
in source/shadow
413 16
ConfigShadow.cpp
in source/shadow
411 16
main.cpp
in source
374 7
SharedCrtResourceManager.cpp
in source
347 10
FileUtils.cpp
in source/util
341 16
JobEngine.cpp
in source/jobs
309 6
JobDocument.cpp
in source/jobs
287 9
Config.h
in source/config
284 8
SecureTunnelingFeature.cpp
in source/tunneling
227 12
SecureTunnelingContext.cpp
in source/tunneling
154 12
FileLogger.cpp
in source/logging
151 9
TcpForward.cpp
in source/tunneling
143 10
Logger.h
in source/logging
116 6
EnvUtils.cpp
in source/util
105 2
DeviceDefenderFeature.cpp
in source/devicedefender
105 6
JobDocument.h
in source/jobs
91 -
JobsFeature.h
in source/jobs
88 -
StringUtils.cpp
in source/util
87 8
StdOutLogger.cpp
in source/logging
74 9
SampleShadowFeature.h
in source/shadow
62 -
ConfigShadow.h
in source/shadow
62 -
SecureTunnelingContext.h
in source/tunneling
58 -
SecureTunnelingFeature.h
in source/tunneling
56 -
FleetProvisioning.h
in source/fleetprovisioning
56 -
Retry.cpp
in source/util
56 1
SharedCrtResourceManager.h
in source
54 -
TcpForward.h
in source/tunneling
50 -
FileLogger.h
in source/logging
50 -
JobEngine.h
in source/jobs
48 3
DeviceDefenderFeature.h
in source/devicedefender
46 -
LoggerFactory.h
in source/logging
46 -
LogMessage.h
in source/logging
44 3
FileUtils.h
in source/util
42 -
LogLevel.cpp
in source/logging
42 -
EnvUtils.h
in source/util
41 -
StdOutLogger.h
in source/logging
41 -
LogQueue.cpp
in source/logging
40 4
Retry.h
in source/util
35 -
LimitedStreamBuffer.cpp
in source/jobs
33 2
EphemeralPromise.h
in source/jobs
33 1
LimitedStreamBuffer.h
in source/jobs
32 -
LogQueue.h
in source/logging
32 -
LoggerFactory.cpp
in source/logging
30 2
ClientBaseNotifier.h
in source
26 -
LogLevel.h
in source/logging
26 -
Logger.cpp
in source/logging
25 1
cmake
Toolchain-mips.cmake
in cmake-toolchain
25 -
Files With Most Units (Top 20)
File# lines# units
Config.cpp
in source/config
1650 47
JobsFeature.cpp
in source/jobs
542 26
FileUtils.cpp
in source/util
341 16
SampleShadowFeature.cpp
in source/shadow
413 16
ConfigShadow.cpp
in source/shadow
411 16
SecureTunnelingContext.cpp
in source/tunneling
154 12
SecureTunnelingFeature.cpp
in source/tunneling
227 12
TcpForward.cpp
in source/tunneling
143 10
SharedCrtResourceManager.cpp
in source
347 10
JobDocument.cpp
in source/jobs
287 9
FileLogger.cpp
in source/logging
151 9
StdOutLogger.cpp
in source/logging
74 9
FleetProvisioning.cpp
in source/fleetprovisioning
630 8
Config.h
in source/config
284 8
StringUtils.cpp
in source/util
87 8
main.cpp
in source
374 7
JobEngine.cpp
in source/jobs
309 6
DeviceDefenderFeature.cpp
in source/devicedefender
105 6
Logger.h
in source/logging
116 6
LogQueue.cpp
in source/logging
40 4
Files With Long Lines (Top 0)

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

File# lines# units# long lines