freertos / FreeRTOS-Partner-Supported-Demos
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 1,020 units with 17,726 lines of code in units (46.7% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (508 lines of code)
    • 24 medium complex units (1,436 lines of code)
    • 84 simple units (3,200 lines of code)
    • 908 very simple units (12,582 lines of code)
0% | 2% | 8% | 18% | 70%
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% | 2% | 8% | 18% | 70%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
AVR_Dx_Atmel_Studio/RTOSDemo0% | 2% | 8% | 18% | 70%
AVR_ATMega4809_Atmel_Studio/RTOSDemo0% | 2% | 8% | 18% | 70%
AVR_Dx_MPLAB.X/TraceRecorder0% | 4% | 7% | 23% | 64%
AVR_ATMega4809_MPLAB.X/TraceRecorder0% | 4% | 7% | 23% | 64%
AVR_Dx_MPLAB.X/cli0% | 0% | 26% | 0% | 73%
AVR_ATMega4809_MPLAB.X/cli0% | 0% | 26% | 0% | 73%
AVR_Dx_MPLAB.X0% | 0% | 0% | 8% | 91%
AVR_ATMega4809_MPLAB.X0% | 0% | 0% | 8% | 91%
AVR_Dx_MPLAB.X/serial0% | 0% | 0% | 0% | 100%
AVR_ATMega4809_MPLAB.X/serial0% | 0% | 0% | 0% | 100%
AVR_Dx_MPLAB.X/ParTest0% | 0% | 0% | 0% | 100%
AVR_ATMega4809_MPLAB.X/ParTest0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static uint8_t prvTraceUserEventFormat()
in AVR_Dx_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
127 27 4
static uint8_t prvTraceUserEventFormat()
in AVR_ATMega4809_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
127 27 4
static uint8_t prvTraceUserEventFormat()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
127 27 4
static uint8_t prvTraceUserEventFormat()
in AVR_Dx_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
127 27 4
static void prvUARTCommandConsoleTask()
in AVR_Dx_MPLAB.X/cli/UARTCommandConsole.c
65 14 1
static void prvUARTCommandConsoleTask()
in AVR_ATMega4809_MPLAB.X/cli/UARTCommandConsole.c
65 14 1
static void prvUARTCommandConsoleTask()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/cli/UARTCommandConsole.c
65 14 1
static void prvUARTCommandConsoleTask()
in AVR_Dx_Atmel_Studio/RTOSDemo/cli/UARTCommandConsole.c
65 14 1
void vTraceEnable()
in AVR_Dx_MPLAB.X/TraceRecorder/trcKernelPort.c
56 13 1
void prvTracePortGetTimeStamp()
in AVR_Dx_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
60 13 1
void vTraceEnable()
in AVR_ATMega4809_MPLAB.X/TraceRecorder/trcKernelPort.c
56 13 1
void prvTracePortGetTimeStamp()
in AVR_ATMega4809_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
60 13 1
void vTraceEnable()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/TraceRecorder/trcKernelPort.c
56 13 1
void prvTracePortGetTimeStamp()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
60 13 1
void vTraceEnable()
in AVR_Dx_Atmel_Studio/RTOSDemo/TraceRecorder/trcKernelPort.c
56 13 1
void prvTracePortGetTimeStamp()
in AVR_Dx_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
60 13 1
uint16_t prvTraceGetDTS()
in AVR_Dx_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
68 12 1
BaseType_t FreeRTOS_CLIProcessCommand()
in AVR_Dx_MPLAB.X/cli/FreeRTOS_CLI.c
48 12 3
uint16_t prvTraceGetDTS()
in AVR_ATMega4809_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
68 12 1
BaseType_t FreeRTOS_CLIProcessCommand()
in AVR_ATMega4809_MPLAB.X/cli/FreeRTOS_CLI.c
48 12 3