aws / aws-cdi-sdk
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 710 units with 13,534 lines of code in units (67.2% of code).
    • 0 very complex units (0 lines of code)
    • 10 complex units (1,390 lines of code)
    • 47 medium complex units (3,178 lines of code)
    • 87 simple units (3,129 lines of code)
    • 566 very simple units (5,837 lines of code)
0% | 10% | 23% | 23% | 43%
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
c0% | 10% | 23% | 24% | 41%
cpp0% | 0% | 44% | 12% | 43%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/cdi0% | 12% | 26% | 23% | 37%
src/common/src0% | 3% | 14% | 23% | 58%
aws-cpp-sdk-cdi/source/model0% | 0% | 52% | 29% | 18%
aws-cpp-sdk-cdi/source0% | 0% | 0% | 25% | 75%
src/common/include0% | 0% | 0% | 0% | 100%
aws-cpp-sdk-cdi/include/aws/cdi/model0% | 0% | 0% | 0% | 100%
include0% | 0% | 0% | 0% | 100%
aws-cpp-sdk-cdi/include/aws/cdi0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static bool ParseBaselineVideoConfiguration()
in src/cdi/baseline_profiles_2_00.c
209 50 2
static bool ParseBaselineVideoConfiguration()
in src/cdi/baseline_profiles_1_00.c
209 50 2
bool CdiOsSignalsWait()
in src/common/src/os_linux.c
126 34 5
133 32 2
147 32 4
CdiReturnStatus RxCreateInternal()
in src/cdi/internal_rx.c
144 31 4
void RxPacketReceive()
in src/cdi/internal_rx.c
100 29 3
136 27 1
CdiReturnStatus EndpointManagerCreate()
in src/cdi/endpoint_manager.c
84 26 5
static CDI_THREAD PollThread()
in src/cdi/adapter.c
102 26 1
static bool MakeBaselineVideoConfiguration()
in src/cdi/baseline_profiles_2_00.c
79 25 3
static CDI_THREAD TxPayloadThread()
in src/cdi/internal_tx.c
132 24 1
77 22 1
uint64_t ProbeTxControlProcessProbeState()
in src/cdi/adapter_efa_probe_tx.c
97 21 1
71 20 2
78 20 2
static bool CreateOptionalParamsString()
in src/cdi/baseline_profiles_1_00.c
42 20 3
CdiReturnStatus UserMetrics::Send()
in src/cdi/cloudwatch_sdk_metrics.cpp
83 20 1
static bool DataPoll()
in src/cdi/adapter.c
73 19 1
82 19 3