aws-robotics / kinesisvideo-ros2
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 14 units with 380 lines of code in units (67.1% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (110 lines of code)
    • 7 medium size units (222 lines of code)
    • 2 small units (29 lines of code)
    • 3 very small units (19 lines of code)
0% | 28% | 58% | 7% | 5%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 86% | 0% | 0% | 13%
cpp0% | 17% | 76% | 3% | 2%
h0% | 0% | 0% | 81% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
launch0% | 86% | 0% | 0% | 13%
src0% | 17% | 76% | 3% | 2%
include/kinesis_video_streamer0% | 0% | 0% | 81% | 18%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
def generate_launch_description()
in kinesis_video_streamer/launch/kinesis_video_streamer.launch.py
58 2 0
void KinesisVideoFrameTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
52 9 3
int main()
in kinesis_video_streamer/src/main.cpp
42 4 2
KinesisManagerStatus StreamerNode::Initialize()
in kinesis_video_streamer/src/streamer.cpp
36 4 2
void ImageTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
35 6 3
bool RosStreamSubscriptionInstaller::SetupRekognitionEnabledKinesisVideoFrameTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
35 4 1
bool RosStreamSubscriptionInstaller::SetupKinesisVideoFrameTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
27 3 1
bool RosStreamSubscriptionInstaller::SetupImageTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
25 3 1
void RekognitionEnabledKinesisVideoFrameTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
22 4 4
bool SetDefaultCallbacks()
in kinesis_video_streamer/include/kinesis_video_streamer/ros_stream_subscription_installer.h
18 4 0
11 2 0
def get_logger_config_path()
in kinesis_video_streamer/launch/kinesis_video_streamer.launch.py
9 4 1
void RosStreamSubscriptionInstaller::Uninstall()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
6 2 1
void set_stream_manager()
in kinesis_video_streamer/include/kinesis_video_streamer/ros_stream_subscription_installer.h
4 1 1