aws-robotics / kinesisvideo-ros2
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 14 units with 380 lines of code in units (67.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (87 lines of code)
    • 12 very simple units (293 lines of code)
0% | 0% | 0% | 22% | 77%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cpp0% | 0% | 0% | 29% | 70%
py0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 29% | 70%
launch0% | 0% | 0% | 0% | 100%
include/kinesis_video_streamer0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 14 most complex units
Unit# linesMcCabe index# params
void KinesisVideoFrameTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
52 9 3
void ImageTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
35 6 3
def get_logger_config_path()
in kinesis_video_streamer/launch/kinesis_video_streamer.launch.py
9 4 1
KinesisManagerStatus StreamerNode::Initialize()
in kinesis_video_streamer/src/streamer.cpp
36 4 2
void RekognitionEnabledKinesisVideoFrameTransportCallback()
in kinesis_video_streamer/src/subscriber_callbacks.cpp
22 4 4
bool RosStreamSubscriptionInstaller::SetupRekognitionEnabledKinesisVideoFrameTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
35 4 1
int main()
in kinesis_video_streamer/src/main.cpp
42 4 2
bool SetDefaultCallbacks()
in kinesis_video_streamer/include/kinesis_video_streamer/ros_stream_subscription_installer.h
18 4 0
bool RosStreamSubscriptionInstaller::SetupImageTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
25 3 1
bool RosStreamSubscriptionInstaller::SetupKinesisVideoFrameTransport()
in kinesis_video_streamer/src/ros_stream_subscription_installer.cpp
27 3 1
def generate_launch_description()
in kinesis_video_streamer/launch/kinesis_video_streamer.launch.py
58 2 0
11 2 0
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