freertos / FreeRTOS-Kernel
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 2,820 units with 37,538 lines of code in units (38.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 12 medium complex units (1,314 lines of code)
    • 105 simple units (6,164 lines of code)
    • 2,703 very simple units (30,060 lines of code)
0% | 0% | 3% | 16% | 80%
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% | 4% | 22% | 72%
py0% | 0% | 0% | 32% | 67%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 19% | 30% | 50%
portable/GCC0% | 0% | 0% | 13% | 86%
portable/IAR0% | 0% | 0% | 12% | 87%
portable/RVDS0% | 0% | 0% | 22% | 77%
portable/ARMv8M0% | 0% | 0% | 13% | 86%
portable/MSVC-MingW0% | 0% | 0% | 50% | 49%
portable/CCS0% | 0% | 0% | 32% | 67%
portable/MemMang0% | 0% | 0% | 31% | 68%
portable/MikroC0% | 0% | 0% | 31% | 68%
portable/Renesas0% | 0% | 0% | 9% | 90%
portable/Common0% | 0% | 0% | 0% | 100%
portable/MPLAB0% | 0% | 0% | 0% | 100%
portable/oWatcom0% | 0% | 0% | 0% | 100%
portable/BCC0% | 0% | 0% | 0% | 100%
portable/CodeWarrior0% | 0% | 0% | 0% | 100%
include0% | 0% | 0% | 0% | 100%
portable/Softune0% | 0% | 0% | 0% | 100%
portable/Paradigm0% | 0% | 0% | 0% | 100%
portable/Tasking0% | 0% | 0% | 0% | 100%
portable/WizC0% | 0% | 0% | 0% | 100%
portable/SDCC0% | 0% | 0% | 0% | 100%
portable/Rowley0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
141 23 4
95 17 1
115 17 4
150 16 2
102 14 3
104 14 3
108 13 2
113 13 1
108 13 5
109 12 2
80 12 6
89 11 1
size_t xStreamBufferSend()
in stream_buffer.c
95 10 4
66 10 1
78 10 1
75 10 5
void vPortStoreTaskMPUSettings()
in portable/IAR/ARM_CM33_NTZ/non_secure/port.c
79 10 4
void vPortStoreTaskMPUSettings()
in portable/IAR/ARM_CM23_NTZ/non_secure/port.c
79 10 4
void vPortStoreTaskMPUSettings()
in portable/IAR/ARM_CM33/non_secure/port.c
79 10 4
void vPortStoreTaskMPUSettings()
in portable/IAR/ARM_CM23/non_secure/port.c
79 10 4