freertos / Lab-Project-FreeRTOS-POSIX
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 90 units with 1,865 lines of code in units (68.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (225 lines of code)
    • 23 simple units (914 lines of code)
    • 64 very simple units (726 lines of code)
0% | 0% | 12% | 49% | 38%
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% | 12% | 49% | 38%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FreeRTOS-Plus-POSIX/source0% | 0% | 12% | 49% | 38%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int timer_settime()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_timer.c
72 16 4
mqd_t mq_open()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
82 14 4
int mq_timedsend()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
71 11 5
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
ssize_t mq_timedreceive()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
63 10 5
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 UTILS_TimespecCompare()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_utils.c
41 9 2
int pthread_join()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
41 8 2
int sem_timedwait()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_semaphore.c
57 8 2
int UTILS_AbsoluteTimespecToDeltaTicks()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_utils.c
28 8 3
static int prvCalculateTickTimeout()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
35 8 3
int pthread_create()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
54 7 3
int UTILS_TimespecAdd()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_utils.c
30 7 3
static BaseType_t prvCreateNewMessageQueue()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
44 7 4
int pthread_cond_timedwait()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread_cond.c
46 6 3
int pthread_attr_setschedparam()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
22 6 2
int pthread_detach()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c
37 6 1
int timer_create()
in FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_timer.c
34 6 3