microsoft / Trill
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 3,323 units with 61,991 lines of code in units (70.7% of code).
    • 8 very complex units (2,645 lines of code)
    • 25 complex units (3,785 lines of code)
    • 191 medium complex units (15,016 lines of code)
    • 257 simple units (8,291 lines of code)
    • 2,842 very simple units (32,254 lines of code)
4% | 6% | 24% | 13% | 52%
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
cs4% | 6% | 24% | 13% | 52%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Sources/Core/Microsoft.StreamProcessing/Operators8% | 5% | 35% | 14% | 35%
Sources/Core/Microsoft.StreamProcessing/Ingress0% | 13% | 24% | 13% | 48%
Sources/Core/Microsoft.StreamProcessing/Utilities0% | 7% | 13% | 13% | 64%
Sources/Core/Microsoft.StreamProcessing/StreamableAPI0% | 3% | 2% | 0% | 93%
Sources/Core/Microsoft.StreamProcessing/StringHandling0% | 8% | 13% | 25% | 52%
Sources/Core/Microsoft.StreamProcessing/Transformer0% | 0% | 25% | 30% | 44%
Sources/Core/Microsoft.StreamProcessing/CacheUtilities0% | 0% | 59% | 0% | 40%
Sources/Core/Microsoft.StreamProcessing/Scheduler0% | 0% | 35% | 0% | 64%
Sources/Core/Microsoft.StreamProcessing/StreamProperties0% | 0% | 10% | 28% | 61%
Sources/Core/Microsoft.StreamProcessing/Pipes0% | 0% | 15% | 0% | 84%
Sources/Core/Microsoft.StreamProcessing/Serializer0% | 0% | 5% | 10% | 84%
Sources/Core/Microsoft.StreamProcessing.Provider0% | 0% | 33% | 0% | 66%
Sources/Core/Microsoft.StreamProcessing/Collections0% | 0% | 0% | 18% | 81%
Sources/Core/Microsoft.StreamProcessing/Egress0% | 0% | 0% | 14% | 85%
Sources/Core/Microsoft.StreamProcessing0% | 0% | 0% | 19% | 80%
Sources/Core/Microsoft.StreamProcessing/Events0% | 0% | 0% | 22% | 77%
Sources/Core/Microsoft.StreamProcessing/Streamables0% | 0% | 0% | 27% | 72%
Sources/Core/Microsoft.StreamProcessing/Aggregates0% | 0% | 0% | 2% | 97%
Sources/Core/Microsoft.StreamProcessing/Fusible0% | 0% | 0% | 0% | 100%
Sources/Core/Microsoft.StreamProcessing/Windows0% | 0% | 0% | 0% | 100%
Sources/Core/Microsoft.StreamProcessing/Sharding0% | 0% | 0% | 0% | 100%
Sources/Core/Microsoft.StreamProcessing.Provider/Extensions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void ProcessCurrentTimestamp()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledGroupedAfaPipe_MultiEventList.cs
420 114 0
private void ProcessCurrentTimestamp()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledPartitionedAfaPipe_MultiEventList.cs
422 113 1
private void ProcessCurrentTimestamp()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledUngroupedAfaPipe_MultiEventList.cs
361 110 0
public override unsafe void OnNext()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledPartitionedAfaPipe_SingleEvent.cs
385 76 1
private void ProcessCurrentTimestamp()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledGroupedAfaPipe_EventList.cs
266 74 0
private void ProcessCurrentTimestamp()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledPartitionedAfaPipe_EventList.cs
269 74 1
private void ProcessCurrentTimestamp()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledUngroupedAfaPipe_EventList.cs
225 71 0
public override unsafe void OnNext()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledGroupedAfaPipe_SingleEvent.cs
297 62 1
public override unsafe void OnNext()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledUngroupedAfaPipe_SingleEvent.cs
255 50 1
private void Visit()
in Sources/Core/Microsoft.StreamProcessing/Utilities/ExpressionExtensions.cs
99 50 1
protected override void ProcessBothBatches()
in Sources/Core/Microsoft.StreamProcessing/Operators/EquiJoin/IncreasingOrder/IncreasingOrderEquiJoinPipe.cs
246 48 6
private bool Equals()
in Sources/Core/Microsoft.StreamProcessing/Utilities/ExpressionExtensions.cs
108 42 2
private void CompileAfa()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledAfa.cs
146 36 1
public override void OnNext()
in Sources/Core/Microsoft.StreamProcessing/Ingress/Temporal/TemporalIngressSubscription.cs
170 35 1
private void Action()
in Sources/Core/Microsoft.StreamProcessing/Ingress/Temporal/TemporalIngressSubscription.cs
171 35 4
public override unsafe void OnNext()
in Sources/Core/Microsoft.StreamProcessing/Operators/Afa/CompiledUngroupedDAfaPipe_SingleEvent.cs
220 35 1
public override void OnNext()
in Sources/Core/Microsoft.StreamProcessing/Ingress/Temporal/TemporalIngressSubscription.cs
165 33 1
private void Process()
in Sources/Core/Microsoft.StreamProcessing/Ingress/Temporal/TemporalIngressSubscription.cs
160 32 1
private void Process()
in Sources/Core/Microsoft.StreamProcessing/Ingress/Temporal/TemporalIngressSubscription.cs
160 32 1
private void ProcessPendingEntries()
in Sources/Core/Microsoft.StreamProcessing/Operators/EquiJoin/StartEdge/PartitionedStartEdgeEquiJoinPipe.cs
175 32 0