microsoft / MRDL_Unity_PeriodicTable
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 5,276 units with 82,191 lines of code in units (12.9% of code).
    • 35 very long units (4,744 lines of code)
    • 215 long units (14,657 lines of code)
    • 842 medium size units (25,725 lines of code)
    • 1,385 small units (20,455 lines of code)
    • 2,799 very small units (16,610 lines of code)
5% | 17% | 31% | 24% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs5% | 17% | 31% | 24% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Assets/MRTK/Core7% | 18% | 29% | 23% | 20%
Assets/MRTK/SDK5% | 15% | 29% | 27% | 22%
Assets/MRTK/Tools8% | 24% | 37% | 18% | 10%
Assets/MRTK/Providers3% | 22% | 37% | 22% | 14%
Assets/MRTK/Services1% | 16% | 30% | 28% | 22%
Assets/MRTK/Extensions0% | 10% | 48% | 18% | 21%
Assets/MRDL_PeriodicTable/Scripts0% | 14% | 39% | 32% | 14%
Assets/MRTK/StandardAssets0% | 0% | 66% | 27% | 6%
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
209 14 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 static void DrawProperty()
in Assets/MRTK/Core/Inspectors/PropertyDrawers/SceneInfoDrawer.cs
169 31 5
private void RenderAppxBuildView()
in Assets/MRTK/Tools/BuildWindow/BuildDeployWindow.cs
168 28 0
public override void OnInspectorGUI()
in Assets/MRTK/SDK/Editor/Inspectors/UX/Interactable/ButtonConfigHelperInspector.cs
151 24 0
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 RenderCriteriaField()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityInputActionRulesInspector.cs
139 21 2
private void InitializeServiceLocator()
in Assets/MRTK/Core/Services/MixedRealityToolkit.cs
136 32 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 RenderModel LoadRenderModel()
in Assets/MRTK/Providers/OpenVR/OpenVRRenderModel.cs
121 18 3
private void ManageVisibility()
in Assets/MRTK/SDK/Features/UX/Scripts/ScrollingObjectCollection/ScrollingObjectCollection.cs
121 38 1
private void DrawChooseOutputFolders()
in Assets/MRTK/Tools/ExtensionServiceCreator/ExtensionServiceWizard.cs
121 18 0
public override void OnInspectorGUI()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealitySceneSystemProfileInspector.cs
117 19 0
private void AddLinks()
in Assets/MRTK/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs
117 14 0
public InscribedRectangle()
in Assets/MRTK/Core/Definitions/BoundarySystem/InscribedRectangle.cs
114 22 2