microsoft / vscode-mono-debug
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 113 units with 1,497 lines of code in units (81.8% of code).
    • 1 very long units (167 lines of code)
    • 3 long units (227 lines of code)
    • 13 medium size units (398 lines of code)
    • 23 small units (319 lines of code)
    • 73 very small units (386 lines of code)
11% | 15% | 26% | 21% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs12% | 16% | 27% | 21% | 23%
ts0% | 0% | 19% | 22% | 57%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
csharp12% | 16% | 27% | 21% | 23%
typescript0% | 0% | 19% | 22% | 57%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public override async void Launch()
in src/csharp/MonoDebugSession.cs
167 39 2
protected override void DispatchRequest()
in src/csharp/DebugSession.cs
90 26 3
public MonoDebugSession()
in src/csharp/MonoDebugSession.cs
81 4 0
public override void SetBreakpoints()
in src/csharp/MonoDebugSession.cs
56 16 2
public override void Evaluate()
in src/csharp/MonoDebugSession.cs
45 11 2
public override void StackTrace()
in src/csharp/MonoDebugSession.cs
41 9 2
private static void Main()
in src/csharp/MonoDebug.cs
40 10 1
public override void Variables()
in src/csharp/MonoDebugSession.cs
36 10 2
public static void Log()
in src/csharp/MonoDebug.cs
30 6 2
private void Dispatch()
in src/csharp/Protocol.cs
30 5 1
private void SetExceptionBreakpoints()
in src/csharp/MonoDebugSession.cs
28 9 1
28 9 1
public override void Disconnect()
in src/csharp/MonoDebugSession.cs
26 5 2
private void ProcessData()
in src/csharp/Protocol.cs
26 7 0
private static void RunServer()
in src/csharp/MonoDebug.cs
25 4 1
public override void Attach()
in src/csharp/MonoDebugSession.cs
22 4 2
function configureExceptions()
in src/typescript/extension.ts
21 5 0
protected void SendMessage()
in src/csharp/Protocol.cs
19 6 1
public static string ExpandVariables()
in src/csharp/Utilities.cs
19 5 3
17 4 1