aws / aws-xray-dotnet-agent
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 226 units with 1,936 lines of code in units (64.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (23 lines of code)
    • 8 simple units (253 lines of code)
    • 217 very simple units (1,660 lines of code)
0% | 0% | 1% | 13% | 85%
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
cpp0% | 0% | 4% | 7% | 88%
cs0% | 0% | 0% | 14% | 85%
h0% | 0% | 0% | 59% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
profiler/src0% | 0% | 3% | 10% | 86%
sdk/Utils0% | 0% | 0% | 22% | 77%
sdk/Sql0% | 0% | 0% | 27% | 72%
sdk/Http0% | 0% | 0% | 0% | 100%
sdk/Configuration0% | 0% | 0% | 0% | 100%
sdk/EntityFramework0% | 0% | 0% | 0% | 100%
sdk/AspNetCore0% | 0% | 0% | 0% | 100%
sdk/Initialization0% | 0% | 0% | 0% | 100%
sdk/Diagnostic0% | 0% | 0% | 0% | 100%
sdk/AspNet0% | 0% | 0% | 0% | 100%
sdk0% | 0% | 0% | 0% | 100%
sdk/AwsSdk0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
23 11 3
HRESULT STDMETHODCALLTYPE QueryInterface()
in src/profiler/src/CorProfiler.h
19 10 2
internal static void ProcessRequest()
in src/sdk/Utils/AspNetCoreRequestUtil.cs
52 9 1
void ILWriter::FixSEHSections()
in src/profiler/src/ILWriter.cpp
41 8 2
public static string GetDataBaseType()
in src/sdk/Utils/AgentUtil.cs
28 8 1
protected override void OnEvent()
in src/sdk/Sql/SqlDiagnosticListener.cs
43 8 1
internal static void ProcessHTTPResponse()
in src/sdk/Utils/AspNetRequestUtil.cs
26 7 2
private static string BuildSubsegmentName()
in src/sdk/Utils/SqlRequestUtil.cs
29 6 1
public static void MarkEntityFromStatus()
in src/sdk/Utils/AgentUtil.cs
15 6 1
22 5 2
internal static void ProcessEventData()
in src/sdk/Utils/SqlRequestUtil.cs
23 5 1
33 5 0
private static bool IsAWSSDKRequest()
in src/sdk/Utils/HttpRequestUtil.cs
17 5 0
internal static void Initialize()
in src/sdk/Initialization/AspNetTracingHandlers.cs
20 5 1
internal static void Initialize()
in src/sdk/Initialization/AspNetCoreTracingHandlers.cs
24 5 0
protected override void OnEvent()
in src/sdk/EntityFramework/EntityFrameworkCoreDiagnosticListener.cs
28 5 1
protected override void OnEvent()
in src/sdk/Http/HttpOutDiagnosticListenerNetframework.cs
28 5 1
private void OnEventStart()
in src/sdk/Http/HttpOutDiagnosticListenerNetframework.cs
23 5 1
private void OnEventStop()
in src/sdk/Http/HttpOutDiagnosticListenerNetframework.cs
16 5 1
protected override void OnEvent()
in src/sdk/Http/HttpOutDiagnosticListenerNetstandard.cs
28 5 1