freertos / FreeRTOS-Partner-Supported-Demos
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 1,020 units with 17,726 lines of code in units (46.7% of code).
    • 12 very long units (1,724 lines of code)
    • 40 long units (2,548 lines of code)
    • 232 medium size units (6,976 lines of code)
    • 264 small units (3,857 lines of code)
    • 472 very small units (2,621 lines of code)
9% | 14% | 39% | 21% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c9% | 14% | 39% | 22% | 13%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
AVR_Dx_Atmel_Studio/RTOSDemo9% | 14% | 39% | 21% | 14%
AVR_ATMega4809_Atmel_Studio/RTOSDemo9% | 14% | 39% | 21% | 14%
AVR_Dx_MPLAB.X45% | 0% | 8% | 35% | 10%
AVR_ATMega4809_MPLAB.X45% | 0% | 8% | 35% | 10%
AVR_Dx_MPLAB.X/TraceRecorder4% | 16% | 45% | 18% | 14%
AVR_ATMega4809_MPLAB.X/TraceRecorder4% | 16% | 45% | 18% | 14%
AVR_Dx_MPLAB.X/cli0% | 26% | 60% | 5% | 6%
AVR_ATMega4809_MPLAB.X/cli0% | 26% | 60% | 5% | 6%
AVR_Dx_MPLAB.X/serial0% | 0% | 0% | 49% | 50%
AVR_ATMega4809_MPLAB.X/serial0% | 0% | 0% | 49% | 50%
AVR_Dx_MPLAB.X/ParTest0% | 0% | 0% | 86% | 13%
AVR_ATMega4809_MPLAB.X/ParTest0% | 0% | 0% | 86% | 13%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static void prvRegisterCheck1()
in AVR_Dx_MPLAB.X/regtest.c
152 2 1
static void prvRegisterCheck2()
in AVR_Dx_MPLAB.X/regtest.c
152 2 1
static void prvRegisterCheck1()
in AVR_ATMega4809_MPLAB.X/regtest.c
152 2 1
static void prvRegisterCheck2()
in AVR_ATMega4809_MPLAB.X/regtest.c
152 2 1
static void prvRegisterCheck1()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/regtest.c
152 2 1
static void prvRegisterCheck2()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/regtest.c
152 2 1
static void prvRegisterCheck1()
in AVR_Dx_Atmel_Studio/RTOSDemo/regtest.c
152 2 1
static void prvRegisterCheck2()
in AVR_Dx_Atmel_Studio/RTOSDemo/regtest.c
152 2 1
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
void prvTraceInitTraceData()
in AVR_Dx_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
89 6 0
void prvTraceInitTraceData()
in AVR_ATMega4809_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
89 6 0
void prvTraceInitTraceData()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
89 6 0
void prvTraceInitTraceData()
in AVR_Dx_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
89 6 0
void vTraceVPrintF()
in AVR_Dx_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
69 9 3
void vTraceVPrintF()
in AVR_ATMega4809_MPLAB.X/TraceRecorder/trcSnapshotRecorder.c
69 9 3
void vTraceVPrintF()
in AVR_ATMega4809_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
69 9 3
void vTraceVPrintF()
in AVR_Dx_Atmel_Studio/RTOSDemo/TraceRecorder/trcSnapshotRecorder.c
69 9 3