awslabs / aws-streamer
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 209 units with 2,344 lines of code in units (64.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (269 lines of code)
    • 14 simple units (447 lines of code)
    • 189 very simple units (1,628 lines of code)
0% | 0% | 11% | 19% | 69%
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
py0% | 0% | 16% | 15% | 68%
cpp0% | 0% | 0% | 28% | 71%
hpp0% | 0% | 0% | 34% | 65%
c0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
awstreamer/gst_pipeline0% | 0% | 28% | 19% | 51%
awstreamer/gst_plugins/mxnet0% | 0% | 0% | 36% | 63%
awstreamer/gst_plugins/cvmlfilter0% | 0% | 0% | 19% | 80%
awstreamer/gst_plugins/python0% | 0% | 0% | 25% | 74%
awstreamer/utils0% | 0% | 0% | 8% | 91%
awstreamer/gst_configurer0% | 0% | 0% | 0% | 100%
awstreamer/gst_metadata0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
awstreamer/gst_viewer0% | 0% | 0% | 0% | 100%
awstreamer0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def start()
in awstreamer/gst_pipeline/cv_pipeline.py
54 21 1
def __init__()
in awstreamer/gst_pipeline/cv_pipeline.py
57 19 2
def get_gst_launch_str()
in awstreamer/gst_pipeline/stream_graph.py
41 18 2
def schedule()
in awstreamer/gst_pipeline/stream_client.py
36 16 4
def configure()
in awstreamer/gst_pipeline/stream_graph.py
39 16 3
def on_pad_added()
in awstreamer/gst_pipeline/stream_pipeline.py
42 13 4
inline cv::Mat PlotBbox()
in awstreamer/gst_plugins/mxnet/src/common.hpp
52 10 8
void gst_mxnet_set_property()
in awstreamer/gst_plugins/mxnet/src/gstmxnet.cpp
46 10 4
def pad_buffer_probe()
in awstreamer/gst_pipeline/ds_pipeline.py
48 10 4
void ImageProcessor::setParams()
in awstreamer/gst_plugins/cvmlfilter/ImageProcessor.cpp
24 9 1
def set_env_variables()
in awstreamer/gst_pipeline/stream_client.py
37 9 1
def compile()
in awstreamer/gst_pipeline/stream_graph.py
32 9 2
def do_transform_ip()
in awstreamer/gst_plugins/python/neodlr.py
38 8 2
def add()
in awstreamer/gst_pipeline/stream_client.py
20 8 2
def select_files_in_time_range()
in awstreamer/utils/video.py
26 8 3
void gst_cvmlfilter_set_property()
in awstreamer/gst_plugins/cvmlfilter/gstcvmlfilter.cpp
31 7 4
def start()
in awstreamer/gst_pipeline/stream_pipeline.py
19 7 2
void ImageProcessor::setParam()
in awstreamer/gst_plugins/mxnet/src/ImageProcessor.cpp
22 6 2
void gst_mxnet_get_property()
in awstreamer/gst_plugins/mxnet/src/gstmxnet.cpp
24 6 4
def configure()
in awstreamer/gst_pipeline/dvr_pipeline.py
28 6 2