aws / efawin
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 261 units with 2,992 lines of code in units (33.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (177 lines of code)
    • 2 medium complex units (71 lines of code)
    • 11 simple units (437 lines of code)
    • 247 very simple units (2,307 lines of code)
0% | 5% | 2% | 14% | 77%
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% | 7% | 3% | 14% | 74%
h0% | 0% | 0% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
interface0% | 56% | 0% | 0% | 43%
efawin0% | 0% | 3% | 17% | 79%
interface/infiniband0% | 0% | 0% | 17% | 82%
include0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int efa_load_efawin_lib()
in interface/efawin.c
177 31 0
30 14 1
41 13 2
24 8 2
int ibv_cmd_modify_qp()
in efawin/ibv_win_cmd.c
37 7 5
57 7 3
15 7 2
20 7 2
int efa_post_send()
in efawin/verbs.c
62 7 3
static inline void verbs_set_ops()
in interface/infiniband/driver.h
88 7 2
int efadv_query_device()
in efawin/verbs.c
26 6 3
26 6 5
35 6 3
int efa_post_recv()
in efawin/verbs.c
47 6 3
int ibv_cmd_create_cq_ex()
in efawin/ibv_win_cmd.c
56 5 8
int efa_open_device()
in efawin/efawinif.c
29 5 1
int efa_device_init()
in efawin/efa_win_cmd.c
30 5 1
34 5 1
int efa_poll_cq()
in efawin/verbs.c
17 5 3
33 5 2