awslabs / amazon-kinesis-video-streams-producer-c
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 87 files with 14,398 lines of code.
    • 2 very long files (3,063 lines of code)
    • 6 long files (4,206 lines of code)
    • 11 medium size files (3,274 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (1,865 lines of code)
    • 54 very small files (1,990 lines of code)
21% | 29% | 22% | 12% | 13%
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% | 33% | 28% | 8% | 4%
c24% | 34% | 11% | 15% | 14%
h0% | 0% | 45% | 14% | 40%
cmake0% | 0% | 0% | 63% | 36%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tst24% | 32% | 31% | 8% | 4%
src/source30% | 30% | 9% | 9% | 19%
src/source/Common0% | 36% | 13% | 15% | 33%
src/include/com/amazonaws/kinesis/video/common0% | 0% | 100% | 0% | 0%
src/source/Common/Lws0% | 0% | 0% | 83% | 16%
src/include/com/amazonaws/kinesis/video/cproducer0% | 0% | 0% | 100% | 0%
src/source/Common/Curl0% | 0% | 0% | 75% | 24%
CMake0% | 0% | 0% | 74% | 25%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ProducerFunctionalityTest.cpp
in tst
1544 -
CurlApiCallbacks.c
in src/source
1519 34
CallbacksProvider.c
in src/source
999 51
ProducerClientBasicTest.cpp
in tst
805 8
ProducerTestFixture.cpp
in tst
690 29
AwsV4Signer.c
in src/source/Common
652 17
CallbacksProviderPublicApiTest.cpp
in tst
556 -
Response.c
in src/source
504 13
FileLoggerFunctionalityTest.cpp
in tst
451 -
CallbacksProviderApiTest.cpp
in tst
388 -
ProducerClientFaultInjectionTest.cpp
in tst
363 -
jsmn.h
in src/include/com/amazonaws/kinesis/video/common
340 5
ProducerTestFixture.h
in tst
285 7
ContinuousRetryStreamCallbacks.c
in src/source
280 13
ProducerContinuousRetryTest.cpp
in tst
275 -
RequestInfo.c
in src/source/Common
239 9
InfoProviderApiTest.cpp
in tst
235 -
Include.h
in src/include/com/amazonaws/kinesis/video/common
211 -
StreamInfoProvider.c
in src/source
207 15
LwsCall.c
in src/source/Common/Lws
195 2
AwsCredentialsTest.cpp
in tst
170 -
Include.h
in src/include/com/amazonaws/kinesis/video/cproducer
163 -
IotCredentialProvider.c
in src/source/Common
162 5
StreamCallbacksProvider.c
in src/source
145 15
RotatingStaticAuthCallbacks.cpp
in tst
133 5
AuthCallbackTest.cpp
in tst
128 -
CurlCall.c
in src/source/Common/Curl
122 3
FileCredentialProvider.c
in src/source/Common
118 5
cmake
Utilities.cmake
in CMake
110 -
CurlApiCallbacks.h
in src/source
108 -
ProducerApiCallCacheTest.cpp
in tst
105 -
IotAuthCallback.c
in src/source
104 5
FileAuthCallbacks.c
in src/source
102 5
StaticAuthCallbacks.c
in src/source
99 5
CredentialProviderAuthCallbacks.c
in src/source
98 5
SslInit.c
in src/source/Common
97 8
Auth.c
in src/source/Common
95 3
StreamLatencyStateMachine.c
in src/source
92 6
DeviceInfoProvider.c
in src/source
88 4
Request.c
in src/source
88 2
Util.c
in src/source/Common
69 4
CallbacksProvider.h
in src/source
66 -
PlatformCallbackProviderApiTest.cpp
in tst
64 -
Include_i.h
in src/source/Common
59 -
AwsV4Signer.h
in src/source/Common
58 -
ConnectionStaleStateMachine.c
in src/source
57 3
StaticCredentialProvider.c
in src/source/Common
53 3
main.cpp
in tst
48 3
ProducerBasicUsageTest.cpp
in tst
46 -
ProducerCallbackProviderApiTest.cpp
in tst
46 -
Files With Most Units (Top 20)
File# lines# units
CallbacksProvider.c
in src/source
999 51
CurlApiCallbacks.c
in src/source
1519 34
ProducerTestFixture.cpp
in tst
690 29
AwsV4Signer.c
in src/source/Common
652 17
StreamInfoProvider.c
in src/source
207 15
StreamCallbacksProvider.c
in src/source
145 15
ContinuousRetryStreamCallbacks.c
in src/source
280 13
Response.c
in src/source
504 13
RequestInfo.c
in src/source/Common
239 9
SslInit.c
in src/source/Common
97 8
ProducerClientBasicTest.cpp
in tst
805 8
ProducerTestFixture.h
in tst
285 7
StreamLatencyStateMachine.c
in src/source
92 6
CredentialProviderAuthCallbacks.c
in src/source
98 5
FileAuthCallbacks.c
in src/source
102 5
StaticAuthCallbacks.c
in src/source
99 5
IotAuthCallback.c
in src/source
104 5
FileCredentialProvider.c
in src/source/Common
118 5
IotCredentialProvider.c
in src/source/Common
162 5
jsmn.h
in src/include/com/amazonaws/kinesis/video/common
340 5
Files With Long Lines (Top 20)

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

File# lines# units# long lines
CurlApiCallbacks.c
in src/source
1519 34 171
CallbacksProvider.c
in src/source
999 51 86
ProducerFunctionalityTest.cpp
in tst
1544 - 71
FileLoggerFunctionalityTest.cpp
in tst
451 - 42
ContinuousRetryStreamCallbacks.c
in src/source
280 13 28
AwsV4Signer.c
in src/source/Common
652 17 28
StreamInfoProvider.c
in src/source
207 15 26
Response.c
in src/source
504 13 24
ProducerClientFaultInjectionTest.cpp
in tst
363 - 22
ProducerClientBasicTest.cpp
in tst
805 8 14
ProducerTestFixture.cpp
in tst
690 29 13
StreamCallbacksProvider.c
in src/source
145 15 11
Include.h
in src/include/com/amazonaws/kinesis/video/common
211 - 11
CurlApiCallbacks.h
in src/source
108 - 10
IotCredentialProvider.c
in src/source/Common
162 5 10
ProducerApiTest.cpp
in tst
45 - 10
Util.c
in src/source/Common
69 4 9
ProducerContinuousRetryTest.cpp
in tst
275 - 9
Include.h
in src/include/com/amazonaws/kinesis/video/cproducer
163 - 8
StreamLatencyStateMachine.c
in src/source
92 6 7