freertos / Lab-Project-FreeRTOS-POSIX
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 90 units with 1,865 lines of code in units (68.0% of code).
    • 0 very long units (0 lines of code)
    • 7 long units (452 lines of code)
    • 24 medium size units (816 lines of code)
    • 26 small units (393 lines of code)
    • 33 very small units (204 lines of code)
0% | 24% | 43% | 21% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 24% | 43% | 21% | 10%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
FreeRTOS-Plus-POSIX/source0% | 24% | 43% | 21% | 10%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
mqd_t mq_open()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
82 14 4
int timer_settime()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_timer.c
72 16 4
int mq_timedsend()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
71 11 5
ssize_t mq_timedreceive()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
63 10 5
int sem_timedwait()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_semaphore.c
57 8 2
int pthread_create()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
54 7 3
int pthread_mutex_timedlock()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread_mutex.c
53 10 2
int clock_nanosleep()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_clock.c
47 10 4
int pthread_cond_timedwait()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread_cond.c
46 6 3
static BaseType_t prvCreateNewMessageQueue()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
44 7 4
int pthread_join()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
41 8 2
int UTILS_TimespecCompare()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_utils.c
41 9 2
int pthread_mutex_init()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread_mutex.c
40 6 2
int mq_unlink()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
40 6 1
int UTILS_TimespecToTicks()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_utils.c
39 9 2
int UTILS_TimespecSubtract()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_utils.c
39 9 3
int mq_close()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
38 6 1
int pthread_detach()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
37 6 1
static int prvCalculateTickTimeout()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
35 8 3
int timer_create()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_timer.c
34 6 3