aws-samples / amazon-emr-on-eks-scale-test-tool
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 27 units with 209 lines of code in units (21.1% 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)
    • 0 simple units (0 lines of code)
    • 27 very simple units (209 lines of code)
0% | 0% | 0% | 0% | 100%
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% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scale_test_tool/helper0% | 0% | 0% | 0% | 100%
scale_test_tool/tasks0% | 0% | 0% | 0% | 100%
scale_test_tool/locust0% | 0% | 0% | 0% | 100%
scale_test_tool/config0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def on_test_stop()
in scale_test_tool/locust/locust_main.py
13 3 1
def delete_virtual_cluster_namespace()
in scale_test_tool/tasks/virtual_cluster_task.py
15 2 3
def _is_virtual_cluster_ready_for_cleanup()
in scale_test_tool/tasks/virtual_cluster_task.py
9 2 2
def __init__()
in scale_test_tool/config/boto_client_config.py
4 2 1
def generate_report()
in scale_test_tool/helper/scale_test_output_generator.py
16 2 1
def describe_job()
in scale_test_tool/helper/emr_container_helper.py
10 2 3
def __init__()
in scale_test_tool/tasks/job_run_task.py
2 1 2
def start_job_run()
in scale_test_tool/tasks/job_run_task.py
12 1 3
def __init__()
in scale_test_tool/tasks/virtual_cluster_task.py
2 1 2
def create_namespace_and_virtual_cluster()
in scale_test_tool/tasks/virtual_cluster_task.py
12 1 2
def _generate_namespace_name()
in scale_test_tool/tasks/virtual_cluster_task.py
2 1 2
def _generate_virtual_cluster_name()
in scale_test_tool/tasks/virtual_cluster_task.py
2 1 2
def get_emr_containers_client()
in scale_test_tool/config/boto_client_config.py
2 1 1
def write_job_run_entry_to_csv()
in scale_test_tool/helper/scale_test_output_generator.py
6 1 2
def extract_job_run_report_data()
in scale_test_tool/helper/scale_test_output_generator.py
7 1 1
def write_job_run_report_header()
in scale_test_tool/helper/scale_test_output_generator.py
7 1 1
def create_virtual_cluster()
in scale_test_tool/helper/emr_container_helper.py
19 1 5
def delete_virtual_cluster()
in scale_test_tool/helper/emr_container_helper.py
5 1 2
def list_job_run_in_running_state()
in scale_test_tool/helper/emr_container_helper.py
6 1 3
def submit_job()
in scale_test_tool/helper/emr_container_helper.py
30 1 7