apple / GCGC
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 62 units with 1,002 lines of code in units (73.2% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (60 lines of code)
    • 11 medium complex units (346 lines of code)
    • 10 simple units (209 lines of code)
    • 40 very simple units (387 lines of code)
0% | 5% | 34% | 20% | 38%
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% | 5% | 34% | 20% | 38%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/graphing0% | 8% | 36% | 16% | 38%
src0% | 0% | 29% | 31% | 38%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def plot_percentile_intervals()
in src/graphing/plotting.py
60 27 14
def plot_using_intervals()
in src/graphing/plotting.py
54 21 12
def get_heatmap_data_logarithmic()
in src/graphing/heatmap.py
40 16 4
def arrange_into_groups()
in src/filter_and_group.py
33 14 5
def plot_frequency_of_gc_intervals()
in src/graphing/plotting.py
30 14 9
def get_parsed_data_from_file()
in src/read_log_file.py
27 13 2
def get_difference()
in src/graphing/allocation_rate.py
31 12 5
def plot_heatmap_logarithmic()
in src/graphing/heatmap.py
27 12 3
def compare_summary()
in src/graphing/summary.py
19 12 4
def plot_heatmap()
in src/graphing/heatmap.py
25 11 3
def print_summary()
in src/graphing/summary.py
42 11 5
def scale_heap_allocation()
in src/read_log_file.py
18 11 1
def print_percentiles()
in src/graphing/percentiles.py
23 10 4
def populate_buckets()
in src/graphing/plotting.py
16 10 6
def get_gc_event_tables()
in src/read_log_file.py
25 10 3
def scale_time()
in src/read_log_file.py
26 10 1
def __heatmap_make()
in src/graphing/heatmap.py
29 9 8
def binary_search()
in src/graphing/heatmap.py
18 9 2
def __annotate_heatmap()
in src/graphing/heatmap.py
18 8 5
def __create_column()
in src/read_log_file.py
21 8 3