aws-samples / ipc-h264-hls-c-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 50 units with 1,346 lines of code in units (63.1% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (439 lines of code)
    • 4 medium complex units (230 lines of code)
    • 12 simple units (383 lines of code)
    • 31 very simple units (294 lines of code)
0% | 32% | 17% | 28% | 21%
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% | 32% | 17% | 28% | 21%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 32% | 17% | 28% | 21%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
150 32 2
122 31 4
int32_t S3_HLS_Client_Upload_Buffer()
in S3_HLS_S3_Put_Client.c
167 30 6
91 19 2
static size_t S3_HLS_Upload_Data()
in S3_HLS_S3_Put_Client.c
37 14 4
int32_t S3_HLS_Client_Set_Tag()
in S3_HLS_S3_Put_Client.c
51 11 2
51 11 1
int32_t S3_HLS_Client_Finalize()
in S3_HLS_S3_Put_Client.c
22 10 1
26 10 1
int32_t S3_HLS_Clear_Buffer()
in S3_HLS_Buffer_Mgr.c
24 10 2
29 9 1
36 8 0
int32_t S3_HLS_Flush_Buffer()
in S3_HLS_Buffer_Mgr.c
40 8 1
47 7 5
39 7 6
38 7 2
int32_t S3_HLS_Put_To_Buffer()
in S3_HLS_Buffer_Mgr.c
28 7 3
28 6 1
26 6 1
61 5 3