microsoft / Windows-Camera
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 35 units with 614 lines of code in units (68.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 11 medium size units (369 lines of code)
    • 11 small units (173 lines of code)
    • 13 very small units (72 lines of code)
0% | 0% | 60% | 28% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 60% | 28% | 11%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Cam3600% | 0% | 60% | 28% | 11%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private async void cmbCamera_SelectionChanged()
in Tools/Cam360/MainPage.xaml.cs
47 10 2
private async Task InitializeCameraAsync()
in Tools/Cam360/MainPage.xaml.cs
46 8 0
private async Task CaptureLowLagPhotoAsync()
in Tools/Cam360/MainPage.xaml.cs
40 5 0
private async void RecordButton_Tapped()
in Tools/Cam360/MainPage.xaml.cs
39 6 2
private void InitializeResolutionSettings()
in Tools/Cam360/MainPage.xaml.cs
38 5 0
private async Task StartPreviewAsync()
in Tools/Cam360/MainPage.xaml.cs
38 6 0
28 5 2
private async Task StartVideoRecordingAsync()
in Tools/Cam360/MainPage.xaml.cs
26 3 0
private async Task StopVideoRecordingAsync()
in Tools/Cam360/MainPage.xaml.cs
23 3 0
private string GetAspectRatio()
in Tools/Cam360/MainPage.xaml.cs
23 5 2
protected override void OnLaunched()
in Tools/Cam360/App.xaml.cs
21 5 1
private async Task CleanupCameraAsync()
in Tools/Cam360/MainPage.xaml.cs
19 4 0
private async Task CapturePhotoAsync()
in Tools/Cam360/MainPage.xaml.cs
19 2 0
public Quaternion CreateFromHeadingPitchRoll()
in Tools/Cam360/MainPage.xaml.cs
18 1 3
private async void Application_Suspending()
in Tools/Cam360/MainPage.xaml.cs
17 3 2
17 7 2
private void ResetView_Click()
in Tools/Cam360/MainPage.xaml.cs
17 6 2
private async Task StopPreviewAsync()
in Tools/Cam360/MainPage.xaml.cs
17 2 0
private void PreviewElement_ManipulationDelta()
in Tools/Cam360/MainPage.xaml.cs
14 4 2
private async void TraceExceptionAsync()
in Tools/Cam360/MainPage.xaml.cs
13 1 2