aws / dcv-color-primitives
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 39 units with 1,491 lines of code in units (14.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 18 medium complex units (1,306 lines of code)
    • 0 simple units (0 lines of code)
    • 21 very simple units (185 lines of code)
0% | 0% | 87% | 0% | 12%
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
rs0% | 0% | 88% | 0% | 11%
c0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/convert_image0% | 0% | 93% | 0% | 6%
src0% | 0% | 0% | 0% | 100%
c_tests0% | 0% | 0% | 0% | 100%
benches0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
fn lrgb_nv12()
in src/convert_image/sse2.rs
85 18 10
fn lrgb_nv12()
in src/convert_image/avx2.rs
85 18 10
fn nv12_bgra_lrgb()
in src/convert_image/sse2.rs
77 17 8
fn i420_bgra_lrgb()
in src/convert_image/sse2.rs
82 17 7
fn i444_bgra_lrgb()
in src/convert_image/sse2.rs
79 17 7
fn lrgb_i444()
in src/convert_image/sse2.rs
80 17 9
fn lrgb_i420()
in src/convert_image/sse2.rs
86 17 9
fn nv12_bgra_lrgb()
in src/convert_image/avx2.rs
77 17 8
fn i420_bgra_lrgb()
in src/convert_image/avx2.rs
82 17 7
fn i444_bgra_lrgb()
in src/convert_image/avx2.rs
79 17 7
fn lrgb_i444()
in src/convert_image/avx2.rs
80 17 9
fn lrgb_i420()
in src/convert_image/avx2.rs
86 17 9
fn lrgb_nv12()
in src/convert_image/x86.rs
61 13 10
fn nv12_bgra_lrgb()
in src/convert_image/x86.rs
55 12 8
fn i420_bgra_lrgb()
in src/convert_image/x86.rs
51 11 7
fn i444_bgra_lrgb()
in src/convert_image/x86.rs
49 11 7
fn lrgb_i444()
in src/convert_image/x86.rs
55 11 9
fn lrgb_i420()
in src/convert_image/x86.rs
57 11 9
fn bgra_to_rgb()
in src/convert_image/x86.rs
63 4 6
def chunks()
in benches/geninput.py
3 2 2