aws-robotics / kinesisvideo-ros1
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 15 units with 310 lines of code in units (61.6% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (57 lines of code)
    • 8 medium size units (196 lines of code)
    • 3 small units (43 lines of code)
    • 3 very small units (14 lines of code)
0% | 18% | 63% | 13% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 19% | 68% | 8% | 3%
h0% | 0% | 0% | 81% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 19% | 68% | 8% | 3%
include/kinesis_video_streamer0% | 0% | 0% | 81% | 18%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
void KinesisVideoFrameTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
57 9 3
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
29 3 1
KinesisManagerStatus StreamerNode::Initialize()
in kinesis_video_streamer/src/streamer.cpp
25 3 0
void RekognitionEnabledKinesisVideoFrameTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
22 4 4
bool RosStreamSubscriptionInstaller::SetupKinesisVideoFrameTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
22 2 1
bool RosStreamSubscriptionInstaller::SetupImageTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
21 2 1
void RosStreamSubscriptionInstaller::Uninstall()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
21 7 1
int main()
in kinesis_video_streamer/src/main.cpp
21 3 2
virtual bool SetDefaultCallbacks()
in kinesis_video_streamer/include/kinesis_video_streamer/ros_stream_subscription_installer.h
18 4 0
13 2 0
void StreamerNode::Spin()
in kinesis_video_streamer/src/streamer.cpp
12 2 0
int shutdown()
in kinesis_video_streamer/src/main.cpp
6 1 2
void StreamerNode::set_subscription_installer()
in kinesis_video_streamer/src/streamer.cpp
4 1 1
void set_stream_manager()
in kinesis_video_streamer/include/kinesis_video_streamer/ros_stream_subscription_installer.h
4 1 1