microsoft / arcana.cpp
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 302 units with 2,021 lines of code in units (40.7% 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)
    • 5 simple units (137 lines of code)
    • 297 very simple units (1,884 lines of code)
0% | 0% | 0% | 6% | 93%
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
h0% | 0% | 0% | 7% | 92%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/Shared/arcana/threading0% | 0% | 0% | 17% | 82%
Source/Shared/arcana0% | 0% | 0% | 0% | 100%
Source/Shared/arcana/containers0% | 0% | 0% | 0% | 100%
Source/Shared/arcana/scheduling0% | 0% | 0% | 0% | 100%
Source/Shared/arcana/functional0% | 0% | 0% | 0% | 100%
Source/Shared/arcana/messaging0% | 0% | 0% | 0% | 100%
Source/Windows/arcana0% | 0% | 0% | 0% | 100%
Source/Windows/arcana/threading0% | 0% | 0% | 0% | 100%
Source/Android/arcana/threading0% | 0% | 0% | 0% | 100%
Source/Apple/arcana/threading0% | 0% | 0% | 0% | 100%
Source/Apple/arcana/tracing0% | 0% | 0% | 0% | 100%
Source/Android/arcana/tracing0% | 0% | 0% | 0% | 100%
Source/Unix/arcana/tracing0% | 0% | 0% | 0% | 100%
Source/Windows/arcana/tracing0% | 0% | 0% | 0% | 100%
Source/Shared/arcana/experimental0% | 0% | 0% | 0% | 100%
Source/Unix/arcana/threading0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
bool internal_drain()
in Source/Shared/arcana/threading/blocking_concurrent_queue.h
19 7 3
void internal_add_continuations()
in Source/Shared/arcana/threading/internal/internal_task.h
30 7 1
inline task when_all()
in Source/Shared/arcana/threading/task.h
43 7 1
bool internal_pop()
in Source/Shared/arcana/threading/blocking_concurrent_queue.h
16 6 3
void add_continuations()
in Source/Shared/arcana/threading/internal/internal_task.h
29 6 1
unsigned int set_intersection_count()
in Source/Shared/arcana/algorithm.h
21 5 4
unsigned int set_intersection_count()
in Source/Shared/arcana/algorithm.h
22 5 5
T median()
in Source/Shared/arcana/algorithm.h
23 5 3
bool internal_tick()
in Source/Shared/arcana/threading/dispatcher.h
20 5 2
static typename as_expected::type invoke()
in Source/Shared/arcana/threading/internal/internal_task.h
18 5 2
static basic_expected invoke()
in Source/Shared/arcana/threading/internal/internal_task.h
20 5 2
int32_t hr_from_error_code()
in Source/Windows/arcana/hresult.cpp
19 5 1
inline const T mean()
in Source/Shared/arcana/algorithm.h
11 4 3
inline const T standard_deviation()
in Source/Shared/arcana/algorithm.h
16 4 3
void insert_presorted()
in Source/Shared/arcana/containers/sorted_vector.h
5 4 1
bool insert()
in Source/Shared/arcana/containers/unique_vector.h
10 4 1
static void call()
in Source/Shared/arcana/functional/inplace_function.h
22 4 3
void fire()
in Source/Shared/arcana/messaging/router.h
26 4 1
void internal_remove_listener()
in Source/Shared/arcana/messaging/router.h
22 4 1
void push()
in Source/Shared/arcana/threading/blocking_concurrent_queue.h
17 4 1