aws / aws-graviton-getting-started
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 32 units with 408 lines of code in units (77.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)
    • 2 simple units (49 lines of code)
    • 30 very simple units (359 lines of code)
0% | 0% | 0% | 12% | 87%
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% | 0% | 13% | 86%
c0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
perfrunbook/utilities0% | 0% | 0% | 13% | 86%
sample-code0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def parse_data()
in perfrunbook/utilities/sar_parse.py
26 7 3
def parse_mpstat_json_single_irq()
in perfrunbook/utilities/mpstat_parse.py
23 6 2
uint32_t arm_crc32c()
in sample-code/crc.c
19 5 3
uint32_t arm_crc32()
in sample-code/crc.c
19 5 3
def calc_stats_and_plot()
in perfrunbook/utilities/measure_and_plot_basic_sysstat_stats.py
18 5 4
def parse_sar()
in perfrunbook/utilities/measure_and_plot_basic_sysstat_stats.py
16 4 2
def perfstat()
in perfrunbook/utilities/measure_and_plot_basic_pmu_counters.py
16 4 4
def plot_counter_stat()
in perfrunbook/utilities/measure_and_plot_basic_pmu_counters.py
22 4 6
def parse_time()
in perfrunbook/utilities/sar_parse.py
6 3 3
def parse_sysstat()
in perfrunbook/utilities/sar_parse.py
23 3 2
def parse_time()
in perfrunbook/utilities/mpstat_parse.py
7 3 2
def parse_mpstat_json_all_irqs()
in perfrunbook/utilities/mpstat_parse.py
19 3 1
def parse_start_date()
in perfrunbook/utilities/sar_parse.py
7 2 1
def parse_for_header()
in perfrunbook/utilities/sar_parse.py
5 2 4
def __init__()
in perfrunbook/utilities/sar_parse.py
17 2 3
def __init__()
in perfrunbook/utilities/sar_parse.py
17 2 3
def __init__()
in perfrunbook/utilities/sar_parse.py
15 2 3
def __init__()
in perfrunbook/utilities/sar_parse.py
15 2 3
def __init__()
in perfrunbook/utilities/sar_parse.py
19 2 3
def __init__()
in perfrunbook/utilities/sar_parse.py
11 2 3