microsoft / vscode-windows-process-tree
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 19 units with 287 lines of code in units (37.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (166 lines of code)
    • 6 small units (88 lines of code)
    • 7 very small units (33 lines of code)
0% | 0% | 57% | 30% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cc0% | 0% | 66% | 22% | 11%
ts0% | 0% | 31% | 55% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 66% | 22% | 11%
lib0% | 0% | 31% | 55% | 13%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
bool GetProcessCommandLine()
in src/process_commandline.cc
50 11 2
25 4 0
void GetRawProcessList()
in src/process.cc
24 7 3
void GetCpuUsage()
in src/process.cc
24 5 3
22 3 3
21 4 0
void GetProcessList()
in src/addon.cc
19 4 1
18 4 1
15 3 3
13 3 2
12 3 3
function pollUntil()
in lib/test.ts
11 2 1
void GetCPUWorker::Execute()
in src/cpu_worker.cc
9 3 0
ULONGLONG GetTotalTime()
in src/process.cc
8 1 2
void Init()
in src/addon.cc
4 1 1
3 1 2
3 1 2
3 1 2
void GetProcessesWorker::Execute()
in src/process_worker.cc
3 1 0