facebookresearch / torch_ucc
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 58 units with 1,126 lines of code in units (57.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 9 simple units (470 lines of code)
    • 49 very simple units (656 lines of code)
0% | 0% | 0% | 41% | 58%
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
cpp0% | 0% | 0% | 42% | 57%
hpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 42% | 57%
include0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
100 10 3
53 8 4
35 8 2
void CommPG::progress_loop()
in src/torch_ucc.cpp
44 8 0
49 8 1
40 8 1
56 7 8
20 6 1
73 6 5
ucc_status_t oob_allgather_test()
in src/torch_ucc_comm.cpp
24 5 1
ucc_status_t oob_allgather_free()
in src/torch_ucc_comm.cpp
25 5 1
17 5 1
67 5 3
void check_device()
in src/torch_ucc.cpp
5 4 2
void check_tensor()
in src/torch_ucc.cpp
12 4 1
15 4 1
24 4 3
6 3 1
void read_confg()
in src/torch_ucc.cpp
32 3 0
6 3 0