microsoft / vscode-chrome-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 52 units with 681 lines of code in units (72.8% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (188 lines of code)
    • 4 medium size units (105 lines of code)
    • 15 small units (204 lines of code)
    • 30 very small units (184 lines of code)
0% | 27% | 15% | 29% | 27%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 29% | 12% | 30% | 27%
js0% | 0% | 55% | 23% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 29% | 12% | 30% | 27%
ROOT0% | 0% | 55% | 23% | 21%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public launch()
in src/chromeDebugAdapter.ts
74 28 3
private async spawnChrome()
in src/chromeDebugAdapter.ts
60 10 6
protected doAttach()
in src/chromeDebugAdapter.ts
54 7 6
30 6 1
function doBuild()
in gulpfile.js
26 7 2
private async killChromeOnWindows()
in src/chromeDebugAdapter.ts
26 5 1
23 12 3
19 3 2
function findExecutable()
in src/chromeDebugAdapter.ts
18 7 1
18 8 0
public commonArgs()
in src/chromeDebugAdapter.ts
16 8 1
14 2 2
protected onFrameNavigated()
in src/chromeDebugAdapter.ts
13 6 1
public async disconnect()
in src/chromeDebugAdapter.ts
13 7 1
public async setExpression()
in src/chromeDebugAdapter.ts
13 1 1
13 5 3
public initialize()
in src/chromeDebugAdapter.ts
12 3 1
11 2 1
protected async onPaused()
in src/chromeDebugAdapter.ts
11 3 2
public attach()
in src/chromeProvidedPortConnection.ts
11 6 5