microsoft / mu_silicon_arm_tiano
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 134 units with 1,019 lines of code in units (2.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (163 lines of code)
    • 14 simple units (260 lines of code)
    • 116 very simple units (596 lines of code)
0% | 0% | 15% | 25% | 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
py0% | 0% | 21% | 33% | 45%
c0% | 0% | 0% | 0% | 100%
inc0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ArmPlatformPkg/Scripts0% | 0% | 26% | 33% | 39%
ArmVirtPkg/PlatformCI0% | 0% | 0% | 32% | 67%
ArmPkg/Library0% | 0% | 0% | 0% | 100%
ArmVirtPkg0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def add_cycles_to_function()
in ArmPlatformPkg/Scripts/Ds5/profile.py
56 21 4
def load_current_symbols()
in ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py
44 19 1
def __init__()
in ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py
34 16 5
def load_symbol_from_console()
in ArmPlatformPkg/Scripts/Ds5/console_loader.py
29 14 4
def load_symbols_at()
in ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
17 9 3
def load_symbols_at()
in ArmPlatformPkg/Scripts/Ds5/system_table.py
19 9 3
def __init__()
in ArmPlatformPkg/Scripts/Ds5/system_table.py
23 8 4
def FlashRomImage()
in ArmVirtPkg/PlatformCI/PlatformBuild.py
37 8 1
def get_module_entrypoint()
in ArmPlatformPkg/Scripts/Ds5/console_loader.py
6 7 2
def load_all_symbols()
in ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py
13 7 1
def get_debug_filepath()
in ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
21 7 1
def get_debug_filepath()
in ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
18 7 1
def get_debug_filepath()
in ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
18 7 1
def load_all_symbols()
in ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
15 7 2
def get_debug_info()
in ArmPlatformPkg/Scripts/Ds5/system_table.py
24 7 1
def load_all_symbols()
in ArmPlatformPkg/Scripts/Ds5/system_table.py
13 6 2
def get_configuration_table()
in ArmPlatformPkg/Scripts/Ds5/system_table.py
19 6 2
def FilterPackagesToTest()
in ArmVirtPkg/PlatformCI/PlatformBuild.py
17 6 3
def parse_pcd_report()
in ArmPlatformPkg/Scripts/Ds5/build_report.py
13 5 2
def get_next_section()
in ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
14 5 2