microsoft / krabsetw
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 368 units with 2,660 lines of code in units (38.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (93 lines of code)
    • 9 simple units (265 lines of code)
    • 356 very simple units (2,302 lines of code)
0% | 0% | 3% | 9% | 86%
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
hpp0% | 0% | 3% | 9% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
krabs/krabs0% | 0% | 4% | 16% | 78%
krabs/krabs/testing0% | 0% | 12% | 0% | 87%
krabs/krabs/filtering0% | 0% | 0% | 7% | 92%
Microsoft.O365.Security.Native.ETW/Testing0% | 0% | 0% | 16% | 83%
Microsoft.O365.Security.Native.ETW0% | 0% | 0% | 0% | 100%
Microsoft.O365.Security.Native.ETW/Filtering0% | 0% | 0% | 0% | 100%
Microsoft.O365.Security.Native.ETW/Kernel0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
inline size_t how_many_bytes_to_fill()
in krabs/krabs/testing/filler.hpp
30 23 1
33 12 2
30 11 2
37 9 1
22 8 1
23 8 2
inline ULONG size_provider::get_property_size()
in krabs/krabs/size_provider.hpp
27 8 4
inline ULONG size_provider::get_heuristic_size()
in krabs/krabs/size_provider.hpp
34 8 3
inline void RecordBuilder::AddValue()
in Microsoft.O365.Security.Native.ETW/Testing/RecordBuilder.hpp
20 7 2
inline void event_filter::on_event()
in krabs/krabs/filtering/event_filter.hpp
21 7 2
60 7 1
21 6 2
inline EventFilter::~EventFilter()
in Microsoft.O365.Security.Native.ETW/Filtering/EventFilter.hpp
19 5 0
virtual bool MoveNext()
in Microsoft.O365.Security.Native.ETW/Property.hpp
17 5 0
inline Provider::~Provider()
in Microsoft.O365.Security.Native.ETW/Provider.hpp
19 5 0
inline sid parser::parse()
in krabs/krabs/parser.hpp
24 5 1
void base_provider::on_event()
in krabs/krabs/provider.hpp
18 5 2
virtual bool TryGetContainerId()
in Microsoft.O365.Security.Native.ETW/EventRecordMetadata.hpp
25 4 1
inline KernelTrace::~KernelTrace()
in Microsoft.O365.Security.Native.ETW/KernelTrace.hpp
16 4 0
inline void Proxy::PushEvent()
in Microsoft.O365.Security.Native.ETW/Testing/Proxy.hpp
16 4 1