freertos / FreeRTOS-Kernel-Community-Supported-Ports
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 31 units with 461 lines of code in units (33.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (95 lines of code)
    • 5 medium size units (136 lines of code)
    • 8 small units (115 lines of code)
    • 17 very small units (115 lines of code)
0% | 20% | 29% | 24% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 20% | 29% | 24% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
GCC/MSP430FR59690% | 71% | 0% | 0% | 28%
GCC/TriCore_38xa0% | 0% | 47% | 34% | 17%
Z88DK/Z1800% | 0% | 0% | 35% | 64%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
asm volatile()
in GCC/MSP430FR5969/port.c
95 2 1
void vTrapInstallHandlers()
in GCC/TriCore_38xa/porttrap.c
31 8 1
int32_t xPortStartScheduler()
in GCC/TriCore_38xa/port.c
29 1 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
void vInternalProtectionTrap()
in GCC/TriCore_38xa/porttrap.c
17 8 1
void vContextManagementTrap()
in GCC/TriCore_38xa/porttrap.c
16 8 1
static void prvInterruptYield()
in GCC/TriCore_38xa/port.c
16 1 1
void vSystemBusAndPeripheralsTrap()
in GCC/TriCore_38xa/porttrap.c
15 7 1
void timer_isr()
in Z88DK/Z180/port.c
15 1 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
void vPortPreemptiveTickISR()
in GCC/MSP430FR5969/port.c
10 2 1
void vNonMaskableInterruptTrap()
in GCC/TriCore_38xa/porttrap.c
10 2 1
static void prvSetupTimerInterrupt()
in GCC/TriCore_38xa/port.c
10 1 1
10 1 1
static void prvSetupERUInterrupt()
in GCC/TriCore_38xa/port.c
9 2 1
void vPortYield()
in GCC/MSP430FR5969/port.c
8 1 1