microsoft / MixedReality-WorldLockingTools-Unity
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 6,153 units with 93,855 lines of code in units (13.7% of code).
    • 42 very long units (5,646 lines of code)
    • 220 long units (14,888 lines of code)
    • 977 medium size units (29,863 lines of code)
    • 1,620 small units (23,939 lines of code)
    • 3,294 very small units (19,519 lines of code)
6% | 15% | 31% | 25% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs6% | 15% | 31% | 25% | 20%
js0% | 0% | 86% | 0% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Assets/MRTK6% | 16% | 31% | 24% | 20%
Assets/WorldLocking.Core2% | 8% | 36% | 26% | 27%
Assets/WorldLocking.ASA0% | 13% | 41% | 29% | 15%
Assets/WorldLocking.Tools0% | 5% | 38% | 32% | 22%
Assets/WorldLocking.Examples0% | 0% | 29% | 28% | 41%
Assets/WorldLocking.Engine0% | 0% | 24% | 34% | 41%
Assets/WorldLocking.ASA.Examples0% | 0% | 18% | 61% | 20%
DocGen/web0% | 0% | 77% | 0% | 22%
DocGen/templates0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void RenderInteractionList()
in Assets/MRTK/Core/Inspectors/ControllerPopupWindow.cs
374 79 2
protected override void OnEnable()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs
266 23 0
public override void OnInspectorGUI()
in Assets/MRTK/SDK/Features/UX/Scripts/Buttons/ButtonIconSet.cs
209 26 0
private void RenderControllerList()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
207 43 1
public override void OnInspectorGUI()
in Assets/MRTK/SDK/Editor/Inspectors/UX/Interactable/ButtonConfigHelperInspector.cs
187 29 0
private void RenderAppxBuildView()
in Assets/MRTK/Tools/BuildWindow/BuildDeployWindow.cs
184 31 0
public static void DrawProperty()
in Assets/MRTK/Core/Inspectors/PropertyDrawers/SceneInfoDrawer.cs
169 31 5
private void FindPlacementPlane()
in Assets/MRTK/SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
148 36 11
public override void DrawInspectorGUI()
in Assets/MRTK/Core/Inspectors/ServiceInspectors/HandJointServiceInspector.cs
142 48 1
private void CheckForGestures()
in Assets/MRTK/Providers/OpenXR/Scripts/OpenXRDeviceManager.cs
141 41 0
private void RenderCriteriaField()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityInputActionRulesInspector.cs
139 21 2
private void InitializeServiceLocator()
in Assets/MRTK/Core/Services/MixedRealityToolkit.cs
136 33 0
private void RenderContentScenes()
in Assets/MRTK/Core/Inspectors/ServiceInspectors/SceneSystemInspector.cs
129 22 3
public void LoadInfo()
in Assets/MRTK/SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
public override void OnInspectorGUI()
in Assets/MRTK/Core/Inspectors/Utilities/Lines/DataProviders/BaseLineDataProviderInspector.cs
122 19 0
private void ManageVisibility()
in Assets/MRTK/SDK/Features/UX/Scripts/ScrollingObjectCollection/ScrollingObjectCollection.cs
122 38 1
private RenderModel LoadRenderModel()
in Assets/MRTK/Providers/OpenVR/OpenVRRenderModel.cs
121 18 3
private void DrawChooseOutputFolders()
in Assets/MRTK/Tools/ExtensionServiceCreator/ExtensionServiceWizard.cs
121 18 0
private void Update()
in Assets/MRTK/Tools/RuntimeTools/Tools/InputFeatureUsageTool/ListInputFeatureUsages.cs
118 28 0
public override void OnInspectorGUI()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealitySceneSystemProfileInspector.cs
117 19 0