aws-robotics / kinesisvideo-encoder-common
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 10 units with 238 lines of code in units (58.8% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (99 lines of code)
    • 3 medium size units (82 lines of code)
    • 2 small units (36 lines of code)
    • 4 very small units (21 lines of code)
0% | 41% | 34% | 15% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 43% | 35% | 15% | 5%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
h264_encoder_core/src0% | 43% | 35% | 15% | 5%
h264_encoder_core/include/h264_encoder_core0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
AwsError Initialize()
in h264_encoder_core/src/h264_encoder.cpp
99 18 9
AwsError Encode()
in h264_encoder_core/src/h264_encoder.cpp
32 6 2
AwsError H264Encoder::Initialize()
in h264_encoder_core/src/h264_encoder.cpp
27 5 4
AwsError set_param()
in h264_encoder_core/src/h264_encoder.cpp
23 3 1
Aws::AwsError GetH264EncoderNodeParams()
in h264_encoder_core/src/h264_encoder_node_config.cpp
19 3 2
AwsError open_codec()
in h264_encoder_core/src/h264_encoder.cpp
17 5 2
std::vector GetExtraData()
in h264_encoder_core/src/h264_encoder.cpp
8 4 0
void Reset()
in h264_encoder_core/include/h264_encoder_core/h264_encoder.h
8 1 0
AwsError H264Encoder::Encode()
in h264_encoder_core/src/h264_encoder.cpp
4 1 2
std::vector H264Encoder::GetExtraData()
in h264_encoder_core/src/h264_encoder.cpp
1 1 0