freertos / FreeRTOS-Kernel-Community-Supported-Ports
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 31 units with 461 lines of code in units (33.5% 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)
    • 5 simple units (93 lines of code)
    • 26 very simple units (368 lines of code)
0% | 0% | 0% | 20% | 79%
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% | 0% | 0% | 20% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
GCC/TriCore_38xa0% | 0% | 0% | 32% | 67%
GCC/MSP430FR59690% | 0% | 0% | 0% | 100%
Z88DK/Z1800% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void vTrapInstallHandlers()
in GCC/TriCore_38xa/porttrap.c
31 8 1
void vInternalProtectionTrap()
in GCC/TriCore_38xa/porttrap.c
17 8 1
void vContextManagementTrap()
in GCC/TriCore_38xa/porttrap.c
16 8 1
void vSystemBusAndPeripheralsTrap()
in GCC/TriCore_38xa/porttrap.c
15 7 1
void vInstructionErrorTrap()
in GCC/TriCore_38xa/porttrap.c
14 6 1
void vMMUTrap()
in GCC/TriCore_38xa/porttrap.c
11 3 1
void vAssertionTrap()
in GCC/TriCore_38xa/porttrap.c
11 3 1
asm volatile()
in GCC/MSP430FR5969/port.c
95 2 1
void vPortPreemptiveTickISR()
in GCC/MSP430FR5969/port.c
10 2 1
void vNonMaskableInterruptTrap()
in GCC/TriCore_38xa/porttrap.c
10 2 1
static void prvSetupERUInterrupt()
in GCC/TriCore_38xa/port.c
9 2 1
static void prvSystemTickHandler()
in GCC/TriCore_38xa/port.c
29 2 1
void vPortReclaimCSA()
in GCC/TriCore_38xa/port.c
24 2 1
void vTrapSysCallYield()
in GCC/TriCore_38xa/port.c
23 2 1
BaseType_t xPortStartScheduler()
in GCC/MSP430FR5969/port.c
6 1 1
void vPortEndScheduler()
in GCC/MSP430FR5969/port.c
3 1 1
void vPortYield()
in GCC/MSP430FR5969/port.c
8 1 1
static void prvSetupTimerInterrupt()
in GCC/MSP430FR5969/port.c
4 1 1
void vPortCooperativeTickISR()
in GCC/MSP430FR5969/port.c
7 1 1
int32_t xPortStartScheduler()
in GCC/TriCore_38xa/port.c
29 1 1